• 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: NSTask Permission denied
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask Permission denied


  • Subject: Re: NSTask Permission denied
  • From: David Reed <email@hidden>
  • Date: Wed, 21 Jul 2004 23:50:27 -0400

Hi,

You need to set the launch path to the actual executable - i.e., /Applications/TextEdit.app/Contents/MacOS/TextEdit. NSTask will (quite rightly) choke when asked to launch a bundle directory. You must always point it to the real binary executable, and you must have execute permission on that file.

HTH,
David.

On Jul 21, 2004, at 11:11 PM, Jim Ways wrote:

I get the following dump when i attempt to use [NSTask
launch]. I want to launch a UEF under libary but i
cant even seem to lauch anything in applications.

runtime = [[NSTask alloc] init];
[runtime setLaunchPath:
@"/Applications/TextEdit.app"];
[runtime launch];

*** NSTask: Task create for path
/Applications/TextEdit.app failed: 13, "Permission
denied".

Any ideas? Thanks Guys!



__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.



--
David Reed | email@hidden | AIM/iChat: parmadil01
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >NSTask Permission denied (From: Jim Ways <email@hidden>)

  • Prev by Date: Re: NSTask Permission denied
  • Next by Date: IP Address - revisited
  • Previous by thread: Re: NSTask Permission denied
  • Next by thread: IP Address - revisited
  • Index(es):
    • Date
    • Thread