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:59 +0100
On Jan 6, 2004, at 4:05 PM, Tomas Zahradnicky wrote:
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.).
How about setting a cron job to run at midnight?
Michael
That's interesting. I've set up a timer that runs at midnight to get
natural date change, then I register one carbon event handler to get
notified when uses manually changes date from prefs pane and
NSWorkspaceDidWakeNotification notification.
Cheers,
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.