RE: Newbie question: Timers
RE: Newbie question: Timers
- Subject: RE: Newbie question: Timers
- From: "Matthew Youney" <email@hidden>
- Date: Tue, 1 Jul 2008 13:27:35 -0400
- Importance: Normal
Thanks,
I will have to investigate further about how exactly to implement this.
Again, thanks for your help,
Matt
-----Original Message-----
From: Daniel Richman [mailto:email@hidden]
Sent: Monday, June 30, 2008 5:46 PM
To: Matthew Youney
Cc: Cocoa
Subject: Re: Newbie question: Timers
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:
>
chman.com
>
> 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