• 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: What is -launchApplication:'s "name of the application"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is -launchApplication:'s "name of the application"


  • Subject: Re: What is -launchApplication:'s "name of the application"
  • From: Michael Ash <email@hidden>
  • Date: Sat, 21 Mar 2009 20:33:19 -0400

On Sat, Mar 21, 2009 at 6:17 PM, Jerry Krinock <email@hidden> wrote:
> From NSWorkspace documentation,
>   - (BOOL)launchApplication:(NSString *)appName
>
>      Parameters > appName > The name of the application to open.
>
> Well, applications can have several names, so I believe this is ambiguous.
>
> My guess is that, in this context, "name" means the CFBundleIdentifier value
> in the application's Info.plist.  Did I guess correctly?

You're correct that it's ambiguous, not only because applications can
have several names, but because several applications can have the same
name.

The answer here is not to use this method at all. The bundle ID is the
proper way to uniquely identify an application, use a method which
takes that instead.

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: 
 >What is -launchApplication:'s "name of the application" (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: NSString and Leaks Instrument, False Positives?
  • Next by Date: Re: MacRoman -> UTF8
  • Previous by thread: Re: What is -launchApplication:'s "name of the application"
  • Next by thread: Why isn't NSString's caseInsensitiveCompare working correctly?
  • Index(es):
    • Date
    • Thread