Re: Using NSTimer to call the main thread
Re: Using NSTimer to call the main thread
- Subject: Re: Using NSTimer to call the main thread
- From: Peter Robinson <email@hidden>
- Date: Fri, 28 Mar 2003 11:53:05 +0000
At 6:07 pm -0500 27/3/03, John Anderson wrote:
[...]We then are free to add new input signals without worrying
about which thread they come from except to note that Apple's
documentation indicates that NSRunLoop in NOT thread safe.
That's the kind of thing I'm worried about. I suppose that's the
answer to my original question.
(2) If you were using 10.2, the simple way would be to call
[NSObject performSelectorOnMainThread: withObject ...] on the object
that you want to execute in the main thread.
Yes, that would be very easy.
Since, you are using 10.1. I highly recommend using Nathan
Day's NSRunLoopMessenger instead.[...]
http://homepage.mac.com/nathan_day/
Looks very useful, thanks.
Peter
_______________________________________________
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.