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

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.

  • Follow-Ups:
    • Re: Getting notified of date change?
      • From: Michael Grant <email@hidden>
  • Prev by Date: Re: Manual Binding in NSTableColumn
  • Next by Date: NSValidatesImmediatelyOption (was: Re: Manual Binding in NSTableColumn)
  • Previous by thread: Re: Manual Binding in NSTableColumn
  • Next by thread: Re: Getting notified of date change?
  • Index(es):
    • Date
    • Thread