Getting notified of date change?
Getting notified of date change?
- Subject: Getting notified of date change?
- From: Tomas Zahradnicky <email@hidden>
- Date: Tue, 6 Jan 2004 23:05:46 +0100
Hi,
I'm writing a simple status item that shows who's nameday it is. The
problem is that my app needs to be notified somehow when the date
changes (i.e. from preferences panel, turns to next day etc.).
The current version creates a timer that fires at the remaining
number of seconds to 00:00:00 and then reprimes itself with 86400
seconds but it does not work well with sleeping (I could register for
sleep events from IOKit, but there must be a better solution for
that). The easy way would be to poll say every minute but polling is
bad.
Do anyone know if there's a notification or something I could
subscribe for to get notified of date changes? Does
SystemConfiguration.framework allow that?
Thanks,
Tomas
--
Ing. Tomas Zahradnicky, Jr.
Production Manager, 24U Software
Associate Member, Filemaker Solutions Alliance
mailto:email@hidden
http://www.24uSoftware.com
_______________________________________________
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.