• 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: launching standard apps with NSTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launching standard apps with NSTask


  • Subject: Re: launching standard apps with NSTask
  • From: Brett Powley <email@hidden>
  • Date: Wed, 11 Jun 2008 10:37:46 +1000

There are a few ways of using Launch Services to find an application without needing to specify its URL. For example, you can find an application using its bundle ID using:

FSRef fsRefApp;

OSStatus err = LSFindApplicationForInfo( kLSUnknownCreator, CFSTR("au.com.foo.Bar"), NULL, & fsRefApp, NULL );


Check out

	http://developer.apple.com/documentation/Carbon/Reference/LaunchServicesReference/

for more details.

Cheers,
Brett



On 11/06/2008, at 9:02 AM, Michael Vannorsdel wrote:

[[NSWorkspace sharedWorkspace] launchApplication:@"Safari"];


On Jun 10, 2008, at 4:55 PM, Memo Akten wrote:

Hi all, i'm writing an app that launches some default apps like safari, itunes, iphoto etc using NSTask. I was wondering if there is a way of writing the launch url not fully hardcoded but using some system variables / methods etc.?

Memo (Mehmet S. Akten)

_______________________________________________

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:
@process.com.au


This email sent to email@hidden

_______________________________________________

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: 
 >launching standard apps with NSTask (From: Memo Akten <email@hidden>)
 >Re: launching standard apps with NSTask (From: Michael Vannorsdel <email@hidden>)

  • Prev by Date: Re: A simple doubt about array
  • Next by Date: Re: launching standard apps with NSTask
  • Previous by thread: Re: launching standard apps with NSTask
  • Next by thread: creating and using a View xib
  • Index(es):
    • Date
    • Thread