Re: NSTask argument list
Re: NSTask argument list
- Subject: Re: NSTask argument list
- From: email@hidden
- Date: Sun, 26 Jun 2016 14:22:30 +0900
If it helps, you can think of it as an object oriented wrapped around C system calls that keeps track of PID and all the other bits like stdout and so on.
That helps to grok why the args is and array and the tool is separate.
Sent from my iPhone
> On Jun 26, 2016, at 1:37 PM, Graham Cox <email@hidden> wrote:
>
> Ah thanks Marco, Andy… this makes a lot more sense and works fine.
>
> ―Graham
>
>
>>> On 26 Jun 2016, at 2:30 PM, Marco S Hyman <email@hidden> wrote:
>>
>> I believe arguments is an array of arguments, not an array containing a string that matches a command line.
>>
>> Then your arguments array should contain five items.
>>
>> 1: -i
>> 2: <source url>
>> 3: -c
>> 4: copy
>> 5: <dest file>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden