Re: Kernel Events from Cocoa (Was Re: Detecting timezone changes?)
Re: Kernel Events from Cocoa (Was Re: Detecting timezone changes?)
- Subject: Re: Kernel Events from Cocoa (Was Re: Detecting timezone changes?)
- From: Nicko van Someren <email@hidden>
- Date: Tue, 4 May 2004 14:44:19 +0100
On 4 May 2004, at 14:15, p3consulting wrote:
define straightforward ;)
Err, some means that does not involve me spawning a new thread :-)
Since the "classic" kevent code:
...
is blocking, it has to be done in a separate thread...
and then deliver the events to the main loop using
- (void)performSelectorOnMainThread:(SEL)aSelector withObject:(id)arg
waitUntilDone:(BOOL)wait
or any other message passing technique...
OK. I'll do it that way.
(lot of threads in this list regarding this particular topic).
Yup, I worked out message massing a little while back. I was just
hoping there might be a way to map kernel events into RunLoop events.
Cheers,
Nicko
_______________________________________________
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.