Hi all, I have a quick question,
I want to find the version number of another application (iTunes). At the moment, I'm using this code:
Is there any way of doing this without making an assumption about the path of the application? I'd love to use the bundle identifier for this, but [NSBundle bundleWithIdentifier:] apparently only works if an instance of NSBundle representing that bundle has already been created.
If anyone can help I'd be grateful!
Thanks,
Milo
I want to find the version number of another application (iTunes). At the moment, I'm using this code:
Code:
NSBundle *iTunesBundle = [NSBundle bundleWithPath:MBiTunesPath]; // nil if iTunes isn't at the expected path
NSDictionary *iTunesInfo = [iTunesBundle infoDictionary];
return [iTunesInfo objectForKey:@"CFBundleVersion"];
Is there any way of doing this without making an assumption about the path of the application? I'd love to use the bundle identifier for this, but [NSBundle bundleWithIdentifier:] apparently only works if an instance of NSBundle representing that bundle has already been created.
If anyone can help I'd be grateful!
Thanks,
Milo