Re: Perform selector on thread
Re: Perform selector on thread
- Subject: Re: Perform selector on thread
- From: "Kyle Sluder" <email@hidden>
- Date: Mon, 24 Mar 2008 10:50:46 -0400
On Mon, Mar 24, 2008 at 7:19 AM, Eddy Hatcher <email@hidden> wrote:
> Which thread will this selector "B" be run on? The main, or the one
> i created for "A". I want selector "B" to be run on the same thread as
> for "A".
Yes, B will be called on the same thread, but whether the contents of
B executes on the same thread as A is up for grabs. It depends on
what B does, quite frankly; if B thunks down to AppKit or posts a
message to the notification center or something, all bets are off.
But as for the message sending itself, that's just a call to
objc_msgSend, so it happens on the same thread.
--Kyle Sluder
_______________________________________________
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