• 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: Getting notified of date change?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting notified of date change?


  • Subject: Re: Getting notified of date change?
  • From: Tomas Zahradnicky <email@hidden>
  • Date: Wed, 7 Jan 2004 14:18:07 +0100

Can your app assume 10.3? Panther added sleep and wake notifications - see NSWorkspace. You could register for wake notifications and when you get one, do any re-syncing you need - change to next day, invalidate your timer and set up a new one, etc. Dunno if that's much help for you, but it's probably the easiest solution and should be quite reliable, if you require 10.3.

Hi Andrew,

I ran fgrep on the whole AppKit and FoundationKit and I discovered NSWorkspaceDidWakeNotification. I got it working by combining the notification, one carbon event that the date/time was changed from the prefs pane and the timer.

Thanks,

Tomas
_______________________________________________
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.

  • Prev by Date: Re: mouseDown: vs. keyDown:
  • Next by Date: Re: Getting notified of date change?
  • Previous by thread: Re: Getting notified of date change?
  • Next by thread: macworld
  • Index(es):
    • Date
    • Thread