Re: Using NSWorkspace's launchedApplication to detect running App
Re: Using NSWorkspace's launchedApplication to detect running App
- Subject: Re: Using NSWorkspace's launchedApplication to detect running App
- From: "Michael Ash" <email@hidden>
- Date: Sat, 13 Dec 2008 18:09:05 -0500
On Sat, Dec 13, 2008 at 12:14 PM, John Love <email@hidden> wrote:
> if ([aDictionary valueForKey:@"NSApplicationName"] == @"My
> Application") {
In addition to what the others have said, you should be checking the
bundle ID if at all possible, not the name. A bundle ID is (intended
to be) a unique identifier for an application, whereas a matching name
could easily come from a completely different application which just
happens to have the same name.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden