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

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


  • Subject: Using performSelector:withObject:afterDelay: to call a delegate method?
  • From: Helen Cooper <email@hidden>
  • Date: Wed, 30 Dec 2009 09:08:20 -0800 (PST)

I want to be able to employ a delegate method after a delay.  So what I have done, which works fine, is create a method in my class that calls the delegate method, and then I use performSelector:withObject:afterDelay: to call the second method:

[self performSelector:@selector(doSomething00) withObject:NULL afterDelay:4.0];


-(void)doSomething00{
[someDelegate doSomething];
}

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?

thanks



_______________________________________________

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

  • Follow-Ups:
    • Re: Using performSelector:withObject:afterDelay: to call a delegate method?
      • From: Nick Zitzmann <email@hidden>
    • Re: Using performSelector:withObject:afterDelay: to call a delegate method?
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Re: Setting the Line Height/ Line Spacing in an NSTextView.
  • Next by Date: Encrypting Binary Strings
  • Previous by thread: Re: Knowing mouse pressed time?
  • Next by thread: Re: Using performSelector:withObject:afterDelay: to call a delegate method?
  • Index(es):
    • Date
    • Thread