Re: NSTask Permission denied
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.