• 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: How to hook into the Apple clock timer API?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to hook into the Apple clock timer API? (From: yuqi chang <email@hidden>)

  • Prev by Date: Re: Frame/layout rect
  • Next by Date: Re: Allow only root/admin users to execute the cocoa app
  • Previous by thread: Re: How to hook into the Apple clock timer API? (IPhone)
  • Next by thread: NSAlert query
  • Index(es):
    • Date
    • Thread