• 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: Randall Meadows <email@hidden>
  • Date: Tue, 25 Mar 2008 15:07:41 -0600

On Mar 24, 2008, at 11:19 PM, Mike wrote:

And that begs another question:

How do I do what you mentioned but using the performSelector:withObject:afterDelay: variant?

That method executes the given selector in the current thread; so, if you need something to run on the main thread after a delay, just chain them together. Invoke performSelectorOnMainThread, and in the method you provide to that invoke performSelector:withOjbect:afterDelay, which will then run *that* method in the *main* thread, after your designated delay.



randy _______________________________________________

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>)
 >Re: Perform selector on thread (From: "John C. Randolph" <email@hidden>)
 >Re: Perform selector on thread (From: Tony Becker <email@hidden>)
 >Re: Perform selector on thread (From: Mike <email@hidden>)

  • Prev by Date: Re: Source list using bindings?
  • Next by Date: Re: Beginner with Cocoa
  • Previous by thread: Re: Perform selector on thread
  • Next by thread: Re: Perform selector on thread
  • Index(es):
    • Date
    • Thread