Re: Pipes and helper tool
Re: Pipes and helper tool
- Subject: Re: Pipes and helper tool
- From: David Blanton <email@hidden>
- Date: Fri, 07 Feb 2003 16:09:44 -0700
On 2/7/03 1:50 PM, "Frank Fenn" <email@hidden> wrote:
>
On Friday, February 7, 2003, at 12:49 PM, Finlay Dobbie wrote:
>
>
> You have so many options! The easiest may be to serialize your
>
> NSMutableArray to an NSData, then write that down your pipe to the
>
> tool.
>
>
So, I've now written a Foundation helper tool which I can launch with
>
AuthorizationExecuteWithPrivileges().
>
>
How do I now set up the pipe? I guess I have to work with named pipes
>
somehow since I didn't use NSTask
>
I can't set stdin of my tool to a pipe created with NSPipe
>
>
--
>
>
regards
>
Frank Fenn - Bright Light Software
>
_______________________________________________
What about NSMachPort and NSMachMsg ? Won't control / receive / send on
Mach Ports with Mach Messages done with Mach RPC solve the problem.
I think NSMachPort(NSMachMsg(NSData)) with appropriate send and receive
rights is the Apple answer as opposed to the UNIX answer.
Peace.
DB
_______________________________________________
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.