On May 24, 2008, at 2:11 PM, Jens Alfke wrote:

On 24 May '08, at 12:05 PM, Steve Christensen wrote:
Would something like this work better? It should deal with localization or if the user renames iTunes for some reason.
...
if ([[applicationD objectForKey:@"NSApplicationPath"] isEqualToString:iTunesPath])
It would be simpler just to use the "NSApplicationBundleIdentifier"  
key, comparing it with "com.apple.iTunes".
I didn't see that in the headers but it is in the docs. Yes, that'd  
work better.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to