FROM : glenn andreas
DATE : Fri Apr 29 15:55:29 2005
On Apr 29, 2005, at 5:28 AM, Adam Holt wrote:
> I'm using:
>
> [[NSWorkspace sharedWorkspace] launchApplication:@"Address Book"];
>
> to launch the Address Book application from an NSButton in my
> application.
>
> I presume however that "Address Book" carries a different name on
> non-English systems? Would I be correct in assuming that my
> NSWorkspace
> call therefore wouldn't work in that case?
>
> If so, is there a best-practise method to refer to the standard
> applications, e.g. some constants that point to the right application
> name
> depending on the localised language settings?
>
I'd suggest using the launchAppWithBundleIdentifier... version (which
also takes a bunch of extra parameters), since you can pass in
@"com.apple.AddressBook" (and the bundle identifier will be persistent
even if the user decides for some reason to rename the application).
Glenn Andreas <email_removed>
<http://www.gandreas.com/> oh my!
quadrium | build, mutate, evolve | images, textures, backgrounds, art
DATE : Fri Apr 29 15:55:29 2005
On Apr 29, 2005, at 5:28 AM, Adam Holt wrote:
> I'm using:
>
> [[NSWorkspace sharedWorkspace] launchApplication:@"Address Book"];
>
> to launch the Address Book application from an NSButton in my
> application.
>
> I presume however that "Address Book" carries a different name on
> non-English systems? Would I be correct in assuming that my
> NSWorkspace
> call therefore wouldn't work in that case?
>
> If so, is there a best-practise method to refer to the standard
> applications, e.g. some constants that point to the right application
> name
> depending on the localised language settings?
>
I'd suggest using the launchAppWithBundleIdentifier... version (which
also takes a bunch of extra parameters), since you can pass in
@"com.apple.AddressBook" (and the bundle identifier will be persistent
even if the user decides for some reason to rename the application).
Glenn Andreas <email_removed>
<http://www.gandreas.com/> oh my!
quadrium | build, mutate, evolve | images, textures, backgrounds, art
| Related mails | Author | Date |
|---|---|---|
| Adam Holt | Apr 29, 12:28 | |
| Ondra Cada | Apr 29, 12:58 | |
| Adam Holt | Apr 29, 13:30 | |
| glenn andreas | Apr 29, 15:55 | |
| Sean McBride | Apr 29, 16:14 |






Cocoa mail archive

