Re: How to hook into the Apple clock timer API?
Re: How to hook into the Apple clock timer API?
- Subject: Re: How to hook into the Apple clock timer API?
- From: Matthew Lindfield Seager <email@hidden>
- Date: Mon, 25 Jan 2010 17:44:26 +1100
On Monday, January 25, 2010, yuqi chang <email@hidden> wrote:
> I have heard that there are some apps that hook into the Apple processes
> that will run in the background (namely, hooking into the Apple clock timer
> API)
If you want to time activities while your app isn't running (like a
GPS or time tracking app might) just store a starting timestamp
somewhere. When the user starts the app up simply check for an object
that has been started but not stopped, calculate the difference in
time and start a timer with that offset (as though it has been running
the whole time).
You can't however have an alarm go off while your app isn't running.
[No I'm not suggesting the GPS can continue in the background, just a
way of emulating a timer running in the background]
Regards,
Matt
_______________________________________________
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