Re: Background threads
Re: Background threads
- Subject: Re: Background threads
- From: Andreas Mayer <email@hidden>
- Date: Thu, 17 Oct 2002 14:56:33 +0200
Am Donnerstag, 17.10.02 um 13:36 Uhr schrieb Al Ameen Shah Ahamed Shah:
Does this mean background threads wont post this notification or does
it mean waitForDataInBackgroundAndNotify does not create a
thread..please help..
It probably means that your application is already multi threaded.
waitForDataInBackgroundAndNotify does create a new thread. You will
want to register for a NSFileHandleReadCompletionNotification to
receive the data.
Beware that if you read from something other than a actual file (i.e.
device or socket) there might be a problem if you want to close the
file and the read thread is still running (looks like it does not
return on close).
bye. Andreas.
_______________________________________________
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.