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
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 mails | Author | Date |
|---|---|---|
| Eddy Hatcher | Mar 24, 12:19 | |
| John C. Randolph | Mar 24, 12:45 | |
| Tony Becker | Mar 24, 13:35 | |
| Kyle Sluder | Mar 24, 15:50 | |
| Mike | Mar 25, 06:19 | |
| Randall Meadows | Mar 25, 22:07 |






Cocoa mail archive

