• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Perform selector on thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Perform selector on thread (From: Eddy Hatcher <email@hidden>)

  • Prev by Date: Re: Quickly remove contents from NSArrayController
  • Next by Date: Re: NSTreeController / CoreData still broken in 10.5?
  • Previous by thread: Re: Perform selector on thread
  • Next by thread: Quickly remove contents from NSArrayController
  • Index(es):
    • Date
    • Thread