• 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 System Prefs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launching System Prefs


  • Subject: Re: Launching System Prefs
  • From: Clark Cox <email@hidden>
  • Date: Thu, 11 Nov 2004 13:02:54 -0500

Don't launch applications like that (i.e. via NSTask), use
-[NSWorkspace launchApplication:] instead.

On Thu, 11 Nov 2004 09:37:24 -0800 (PST), Kodex <email@hidden> wrote:
> Hey all,
> Im trying to launch the system preferences from cocoa
> and i keep getting a premission denied error. I think
> it has something to do with my path name, im not sure
> how to include spaces in it. Below is my code that
> fails:
>
>                 runtime = [[NSTask alloc] init];
>                 [runtime setLaunchPath: @"/Applications/System\
> Preferences.app"];
>                 [runtime launch];
>                 [runtime release];
>
> Thanks all!
>
> __________________________________
> Do you Yahoo!?
> Check out the new Yahoo! Front Page.
> www.yahoo.com
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>


--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Launching System Prefs (From: Kodex <email@hidden>)

  • Prev by Date: Launching System Prefs
  • Next by Date: "Dependancy analysis" build error
  • Previous by thread: Launching System Prefs
  • Next by thread: Re: Launching System Prefs
  • Index(es):
    • Date
    • Thread