Re: NSTimer and touch events

2012-01-10 Thread Eric E. Dolecki
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 wrote: > On 10 Jan 2012, at 12:03 pm, Eric E. Dolecki wrote: > > >screenTimer = [NS

Re: NSTimer and touch events

2012-01-10 Thread Ben Kennedy
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 t

NSTimer and touch events

2012-01-10 Thread Eric E. Dolecki
This is odd. Perhaps I need coffee. I have an app where I hide something by default (UIView). touchesBegan will make it visible. touchesMoved keeps visible. touchesEnded after 2 seconds. My method is never getting called. In my .h NSTimer *screenTimer; ... @property(nonatomic,retain) NSTimer *scr