• 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: NSWorkspace notifications related to time change
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWorkspace notifications related to time change


  • Subject: Re: NSWorkspace notifications related to time change
  • From: Steve Mills via Cocoa-dev <email@hidden>
  • Date: Wed, 18 Dec 2019 11:25:24 -0600

> On Dec 18, 2019, at 11:19, Carl Hoefs via Cocoa-dev
> <email@hidden> wrote:
>
> I have a macOS daemon that uses NSTimers for scheduling user event
> reminders.
>
> This works well except for abrupt time changes:
>  (1) the user explicitly changes the date/time
>  (2) the user crosses into a different time zone
>  (3) daylight saving time comes/goes.
> Then I need to recalculate the timers based on the new current time.
>
> The Apple docs don't list any NSWorkspace notifications related to the above.
> How can I handle these cases?

Look in a different header, one related to time; NSDate.h, where you’ll find
NSSystemClockDidChangeNotification.

Steve via iPhone


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSWorkspace notifications related to time change
      • From: Jean-Daniel via Cocoa-dev <email@hidden>
    • Re: NSWorkspace notifications related to time change
      • From: Carl Hoefs via Cocoa-dev <email@hidden>
References: 
 >NSWorkspace notifications related to time change (From: Carl Hoefs via Cocoa-dev <email@hidden>)

  • Prev by Date: NSWorkspace notifications related to time change
  • Next by Date: Re: NSWorkspace notifications related to time change
  • Previous by thread: NSWorkspace notifications related to time change
  • Next by thread: Re: NSWorkspace notifications related to time change
  • Index(es):
    • Date
    • Thread