Re: NSTask from a foundation tool?
Re: NSTask from a foundation tool?
- Subject: Re: NSTask from a foundation tool?
- From: John Timmer <email@hidden>
- Date: Sat, 19 Apr 2003 13:18:12 -0400
I've used it successfully in a Foundation tool, but it was in a tool with a
runloop. Does what you're trying to execute have the executable bit set?
What arguments are you sending it? My experience is that, even if you don't
have any arguments, you should send it an actual empty array, rather than
nil instead of the array (ie, use [NSArray arrayWithObject: @""] ).
John
>
Can I use NSTask from a foundation tool? Seems like I should be able to but
>
I'm hitting a breakpoint. I don't have a run loop in the tool.
>
>
I'm getting the message:
>
*** Uncaught exception: <NSInvalidArgumentException> launch path not
>
accessible
>
>
But the launch path looks good (from the terminal, anyway). This is a tool
>
that is running as root.
_______________________________________________
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.