• 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: Using performSelector:withObject:afterDelay: to call a delegate method?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using performSelector:withObject:afterDelay: to call a delegate method?


  • Subject: Re: Using performSelector:withObject:afterDelay: to call a delegate method?
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 30 Dec 2009 10:41:53 -0700

On Dec 30, 2009, at 10:08 AM, Helen Cooper wrote:

> I am wondering though, if there might be a way to use  performSelector:withObject:afterDelay: (or some similar method) to call the delegate method directly?

You can call any method you want using that method, even delegate methods. If you need to pass in more arguments with the selector, then use NSInvocation to set up the message with the arguments, and use -performSelector:... to invoke the invocation after the delay.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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: 
 >Using performSelector:withObject:afterDelay: to call a delegate method? (From: Helen Cooper <email@hidden>)

  • Prev by Date: Re: Using performSelector:withObject:afterDelay: to call a delegate method?
  • Next by Date: Re: Encrypting Binary Strings
  • Previous by thread: Re: Using performSelector:withObject:afterDelay: to call a delegate method?
  • Next by thread: Encrypting Binary Strings
  • Index(es):
    • Date
    • Thread