Re: [long] Re: Running processes
Re: [long] Re: Running processes
- Subject: Re: [long] Re: Running processes
- From: "Tom Harrington" <email@hidden>
- Date: Tue, 12 Sep 2006 10:48:54 -0600
On 9/12/06, Development <email@hidden> wrote:
[task launch];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(printTaskOutput:)
name:NSFileHandleReadCompletionNotification object:[[task
standardOutput] fileHandleForReading]];
You've got a race condition here, and you're losing the race. As soon
as you launch the task, it can start producing output. But you're not
even listening for the output yet! Some of it may well go by before
you get your notification handler installed.
--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden