Re: NSFileHandle thread safe ?
Re: NSFileHandle thread safe ?
- Subject: Re: NSFileHandle thread safe ?
- From: Finlay Dobbie <email@hidden>
- Date: Wed, 14 Sep 2005 11:51:59 +0100
On 14/09/05, Alec Carlson <email@hidden> wrote:
> Finlay,
>
> That¹s what I was hoping. However, the replies to this question are running
> 3:1 in favor of the notification occurring in the threads context. It is
> certainly possible that NSFileHandle forces the
> NSFileHandleReadCompletionNotification notification on the main run loop
> that¹s what I want and it¹s easy enough to do, but... Does anyone know for
> certain main run loop (main thread) or NSFileHandle background thread
I'm pretty certain I remember it being posted in the main application
runloop when I last used it, which was in ~Puma days. The debugger
will certainly tell you which thread you're in, if you put a
breakpoint in your notification callback.
I can't see the point of it being implemented any other way. I think
it's just that the documentation is being deficient. Perhaps one of
the frameworks guys can chip in and confirm.
-- Finlay
_______________________________________________
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