Re: Getting notified of date change?
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.