Skip navigation.
 
mlRe: Perform selector on thread
FROM : Kyle Sluder
DATE : Mon Mar 24 15:50:46 2008

On Mon, Mar 24, 2008 at 7:19 AM, Eddy Hatcher <eddy.<email_removed>> 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

Related mailsAuthorDate
mlPerform selector on thread Eddy Hatcher Mar 24, 12:19
mlRe: Perform selector on thread John C. Randolph Mar 24, 12:45
mlRe: Perform selector on thread Tony Becker Mar 24, 13:35
mlRe: Perform selector on thread Kyle Sluder Mar 24, 15:50
mlRe: Perform selector on thread Mike Mar 25, 06:19
mlRe: Perform selector on thread Randall Meadows Mar 25, 22:07