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

Observing Time


  • Subject: Observing Time
  • From: email@hidden
  • Date: Fri, 26 Jul 2013 10:52:09 +0900

Hi all

Is there something obvious I am missing, or is there no Cocoa API for observing the current time?

I've found dispatch_timer to be reasonably accurate in doing this, but naturally lagging a little. The interval is pretty reliable, but I wonder if there is a hook to the time as updated on the system clock on the menu bar and I'm just not finding it in the docs?

Basically I just want to display the current time in various time zone representations at the same time.

I'm getting about a half second lag behind the system clock.
This is actually reasonable for my purposes, but I wonder if I'm missing something that might be more in sync.


_______________________________________________

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


  • Follow-Ups:
    • Re: Observing Time
      • From: Rick Mann <email@hidden>
  • Prev by Date: Re: storage for context: value
  • Next by Date: Re: Observing Time
  • Previous by thread: Re: NSTask interrupt exception
  • Next by thread: Re: Observing Time
  • Index(es):
    • Date
    • Thread