• 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: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.

References: 
 >Getting notified of date change? (From: Tomas Zahradnicky <email@hidden>)
 >Re: Getting notified of date change? (From: Michael Grant <email@hidden>)

  • Prev by Date: Re: Getting notified of date change?
  • Next by Date: Re: Encryption
  • Previous by thread: Re: Getting notified of date change?
  • Next by thread: Re: Getting notified of date change?
  • Index(es):
    • Date
    • Thread