Getting the main run loop to call a selector
Getting the main run loop to call a selector
- Subject: Getting the main run loop to call a selector
- From: Tim Hewett <email@hidden>
- Date: Fri, 12 Sep 2003 09:10:16 +0100
I'm having some problems with multithreading and Cocoa, like opening
and closing drawers from subthreads (sometimes they open, sometimes
they don't). These problems don't happen when the main thread, i.e. the
one which responds to menus and buttons etc., performs these actions.
So I'm thinking that it would be best to have the main thread do these
things when asked to by the subthread, hoping that this behaviour will
become reliable because of this.
Is there a way to post some kind of event, notification, message or
whatever to the main thread to have it call a selector on an object?
Regards,
Tim.
_______________________________________________
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.