• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using NSWorkspace's launchedApplication to detect running App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Using NSWorkspace's launchedApplication to detect running App (From: John Love <email@hidden>)

  • Prev by Date: Re: setNeedsDisplay Equivalent for NSMenuItem?
  • Next by Date: Re: Drawing NSTextFieldCell subclass in table view
  • Previous by thread: Re: Using NSWorkspace's launchedApplication to detect running App
  • Next by thread: setNeedsDisplay Equivalent for NSMenuItem?
  • Index(es):
    • Date
    • Thread