Re: What is -launchApplication:'s "name of the application"
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