• 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 Inaccurate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer Inaccurate?


  • Subject: Re: NSTimer Inaccurate?
  • From: "Mark's Studio" <email@hidden>
  • Date: Mon, 30 Sep 2002 16:43:17 +0200

The timer is not running when the computer sleeps,
I think there is a new method that fires on a specific date in 10.2
,you could use instead.


On mandag, sep 30, 2002, at 16:24 Europe/Copenhagen, Sanford Selznick
wrote:

> I've got an NSTimer that's supposed to fire every 24 hours. But my
> logs reveal that it's really firing every 6 days or so:
>
> myTimer = [NSTimer
> timerWithTimeInterval:(60 * 60 * 24)
> target:self
> selector:@selector(myAction:)
> userInfo:nil
> repeats:YES];
>
> [myTimer retain];
>
> [[NSRunLoop currentRunLoop]
> addTimer:myTimer
> forMode:@"kCFRunLoopDefaultMode"];
>
> This is on a PowerBook that sleeps often. The timer is used in a
> background only application. 10.2.1.
>
> What am I doing wrong?
>
> Thanks,
> Sanford
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
>
>
Peter Mark

Mark's Recording Studio A/S
Faelledvej 19 b DK2200 N
Copenhagen Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSTimer Inaccurate? (From: Sanford Selznick <email@hidden>)

  • Prev by Date: NSTimer Inaccurate?
  • Next by Date: MEETING REMINDER: Chicago Cocoa & WebObjects User Group @ Oct. 1, 6:00 PM
  • Previous by thread: NSTimer Inaccurate?
  • Next by thread: Problem calling InternetConfig in Jaguar
  • Index(es):
    • Date
    • Thread