Re: Thread Communication Conceptual Question
Re: Thread Communication Conceptual Question
- Subject: Re: Thread Communication Conceptual Question
- From: Filipe Varela <email@hidden>
- Date: Thu, 2 Aug 2007 10:48:48 +0100
Andrew, i use performSelectorOnMainThread all the time (like passing
status update messages to the thread that controls the GUI), but he
did say he was looking for something API agnostic (ie, not Cocoa,
Foundation).
Cheers,
Filipe
On 2007/08/02, at 10:45, Andrew Farmer wrote:
On 02 Aug 07, at 02:42, Filipe Varela wrote:
AFAIK, and based on something i wrote (check out www.dev6.com
under the blog section, release 1 of the flightcontroller code),
if you do signal handling, the signal handler is always executed
on the main thread. Could that be used to pass messages to the
main thread in your case?
Augh, no! There's a much simpler way of doing things - look up the
NSObject method
"performSelectorOnMainThread:withObject:waitUntilDone:".
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden