• 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 ... afterDelay?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: perform ... afterDelay?


  • Subject: Re: perform ... afterDelay?
  • From: Marco Scheurer <email@hidden>
  • Date: Wed, 4 Jan 2006 20:53:03 +0100


On Jan 4, 2006, at 20:39, goessly wrote:

Simplisticly put: (how) can I use that like this:
[self myCounter++  afterDelay:0.04]

[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.04]];

This is a very quick and elegant solution, thank you!

Yes, if used in the code of your original post, but again not what you need, given the details you added since then. An NSTimer would indeed be better. You don't really want to wait 0.04 seconds, you want to have a method called 25 times per second.



Marco Scheurer Sen:te, Lausanne, Switzerland http://www.sente.ch

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: perform ... afterDelay?
      • From: goessly <email@hidden>
References: 
 >perform ... afterDelay? (From: goessly <email@hidden>)
 >Re: perform ... afterDelay? (From: Jeff LaMarche <email@hidden>)
 >Re: perform ... afterDelay? (From: Marco Scheurer <email@hidden>)
 >Re: perform ... afterDelay? (From: goessly <email@hidden>)

  • Prev by Date: MainMenu
  • Next by Date: Re: Core-Data Non-Standard Attributes
  • Previous by thread: Re: perform ... afterDelay?
  • Next by thread: Re: perform ... afterDelay?
  • Index(es):
    • Date
    • Thread