Re: Problem with arguments of an NSTask
Re: Problem with arguments of an NSTask
- Subject: Re: Problem with arguments of an NSTask
- From: Finlay Dobbie <email@hidden>
- Date: Tue, 29 Oct 2002 13:13:45 +0000
On Tuesday, October 29, 2002, at 12:49 pm, Arthur VIGAN wrote:
NSArray *arguments = [NSArray arrayWithObjects:@"-nice", @"19"];
I get a EX_BAD_ACCESS error before the task is launched.
arrayWithObjects should be nil-terminated, like so:
NSArray *arguments = [NSArray arrayWithObjects:@"-nice", @"19", nil];
-- Finlay
_______________________________________________
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.