• 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: Schedule a Method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Schedule a Method


  • Subject: Re: Schedule a Method
  • From: Andrew James <email@hidden>
  • Date: Mon, 6 Aug 2007 22:44:54 +0930

Hi Jonathon,

It does not clearly state it in the class reference, but will performSelector:withObject:afterDelay: keep counting down while the machine is asleep, the problem im having with the current NSTimer is that my application is to synchronise every 24hours etc.

But the obvious trouble is every time the machine sleeps for say 6 hours that 24 hours is delayed for 6 hours resulting in a incorrect timer period


On 06/08/2007, at 10:32 PM, Jonathon Mah wrote:

Andrew,

On 2007-08-06, at 20:16, Andrew James wrote:

Is there a way to schedule a method to run in 24 hours or even directly by date, by schedule i mean that it wont be delayed by system sleep like NSTimer

Do you mean you want it called while the system is asleep?

Or maybe a -[NSObject performSelector:withObject:afterDelay:] will do what you want.



Jonathon Mah
email@hidden



_______________________________________________

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


References: 
 >Schedule a Method (From: Andrew James <email@hidden>)
 >Re: Schedule a Method (From: Jonathon Mah <email@hidden>)

  • Prev by Date: Re: NSTextFieldCell and trackMouse
  • Next by Date: dealloc for cleanup versus freeing memory
  • Previous by thread: Re: Schedule a Method
  • Next by thread: Re: Schedule a Method
  • Index(es):
    • Date
    • Thread