Re: NSTimer and touch events
Re: NSTimer and touch events
- Subject: Re: NSTimer and touch events
- From: "Eric E. Dolecki" <email@hidden>
- Date: Tue, 10 Jan 2012 16:03:26 -0500
Haha. Thanks for catching that!!!
Google Voice: (508) 656-0622
Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki
http://blog.ericd.net
On Tue, Jan 10, 2012 at 3:11 PM, Ben Kennedy <email@hidden> wrote:
> On 10 Jan 2012, at 12:03 pm, Eric E. Dolecki wrote:
>
> > screenTimer = [NSTimer timerWithTimeInterval:2 target:self selector:
> > @selector(turnOffScreen:) userInfo:nil repeats:NO];
>
> You need scheduledTimerWithTimeInterval:... (as opposed to just
> timerWithTimeInterval:...), in order for the timer to actually get posted.
> The same oversight had me scratching my head for 15 minutes a few weeks
> ago.
>
> b
>
> --
> Ben Kennedy, chief magician
> Zygoat Creative Technical Services
> http://www.zygoat.ca
>
>
_______________________________________________
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