Re: NSTimer and touch events
Re: NSTimer and touch events
- Subject: Re: NSTimer and touch events
- From: Ben Kennedy <email@hidden>
- Date: Tue, 10 Jan 2012 12:11:35 -0800
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