• 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: Newbie question: Timers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question: Timers


  • Subject: Re: Newbie question: Timers
  • From: Daniel Richman <email@hidden>
  • Date: Mon, 30 Jun 2008 14:46:26 -0700

Use this:

NSTimer *myTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 // number of seconds as double
target:self // targer
selector:@selector(checkTimer:) // selector to call (parameter is the timer)
userInfo:nil // I don't use any user info
repeats:YES]; // whether the timer repeats or is once only (this is a BOOL)



Daniel


Matthew Youney wrote:
Hello everyone:
I have another question that is based on my Microsoft background (yes I am
ashamed).

In the VS environment, there is a “timer” control that can be dropped onto a
form, and will generate timer events every X milliseconds.  How would I
impliment similar functionality in Cocoa, or what would you gurus suggest
that I look into?  What is best?


As always, thanks for your help, and best regards, Matt _______________________________________________

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
_______________________________________________

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: 
 >Newbie question: Timers (From: "Matthew Youney" <email@hidden>)

  • Prev by Date: Scaled Printing
  • Next by Date: Re: Newbie question: Timers
  • Previous by thread: Newbie question: Timers
  • Next by thread: Re: Newbie question: Timers
  • Index(es):
    • Date
    • Thread