site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bchhChiYJotaIXuf+fEr/3+YFYtCcIQ60gnL8nbcL2bUAlAPCQM0SBf+BYdeY0VyLfmcQu2ZZ9TsgBXSHUBAHYEfKSvkH2FR9KtY7eMnpAwa4vXUQHXRZkdzPYWSzUxNYpgLKdU8MZzhMdbAEYgI3n9gw9qhHdy1RDeKMhzV87U= On 9/30/05, Corey O'Connor <coreyoconnor@gmail.com> wrote:
I'm unfamiliar with using pipe's with the Foundation API, but here's a guess how:
let thePipe = a NSPipe. let app3Task = the NSTask for App3 [app3Task setStandardOutput: [thePipe fileHandleForWriting]]
Then the parent process can read from App3's stdout using [thePipe fileHandleForReading]
Cancel that! Even easier apparantly: let thePipe = a NSPipe. let app3Task = the NSTask for App3 [app3Task setStandardOutput: thePipe] // note: does not pass the pipes write file handle. Then the parent process can just use [thePipe fileHandleForReading] to read from the child-process' stdout. -- -Corey O'Connor _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... This email sent to site_archiver@lists.apple.com