• 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: NSTimer and touch events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTimer and touch events
      • From: "Eric E. Dolecki" <email@hidden>
References: 
 >NSTimer and touch events (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: NSTimer and touch events
  • Next by Date: Respecting tabs across applications
  • Previous by thread: NSTimer and touch events
  • Next by thread: Re: NSTimer and touch events
  • Index(es):
    • Date
    • Thread