Re: NSTimer Inaccurate?
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.