Re: NSWorkspace notifications related to time change

2019-12-18 Thread Carl Hoefs via Cocoa-dev
On Dec 18, 2019, at 12:39 PM, Jean-Daniel wrote: > >> Le 18 déc. 2019 à 20:10, Carl Hoefs via Cocoa-dev > > a écrit : >> >>> On Dec 18, 2019, at 11:35 AM, James Walker via Cocoa-dev >>> mailto:cocoa-dev@lists.apple.com>> wrote: >>> >>> On 12/18/19 9:55 AM, Car

Re: NSWorkspace notifications related to time change

2019-12-18 Thread Jens Alfke via Cocoa-dev
> On Dec 18, 2019, at 11:10 AM, Carl Hoefs via Cocoa-dev > wrote: > > Thanks for the suggestion. Apple docs have [[[NSWorkspace sharedWorkspace] > notificationCenter] in their code snippets. The docs for that property say that it's only for use with the notifications declared in NSWorkspace

Re: NSWorkspace notifications related to time change

2019-12-18 Thread Jean-Daniel via Cocoa-dev
> Le 18 déc. 2019 à 20:10, Carl Hoefs via Cocoa-dev > a écrit : > > > >> On Dec 18, 2019, at 11:35 AM, James Walker via Cocoa-dev >> wrote: >> >> On 12/18/19 9:55 AM, Carl Hoefs via Cocoa-dev wrote: >> >>> However, I cannot get this notification to fire on system time changes. My >>> ot

Re: NSWorkspace notifications related to time change

2019-12-18 Thread Carl Hoefs via Cocoa-dev
On Dec 18, 2019, at 12:31 PM, Jean-Daniel via Cocoa-dev wrote: > > >> Le 18 déc. 2019 à 18:25, Steve Mills via Cocoa-dev >> a écrit : >> >>> On Dec 18, 2019, at 11:19, Carl Hoefs via Cocoa-dev >>> wrote: >>> >>> I have a macOS daemon that uses NSTimers for scheduling user event >>> remi

Re: NSWorkspace notifications related to time change

2019-12-18 Thread Jean-Daniel via Cocoa-dev
> Le 18 déc. 2019 à 18:25, Steve Mills via Cocoa-dev > a écrit : > >> On Dec 18, 2019, at 11:19, Carl Hoefs via Cocoa-dev >> wrote: >> >> I have a macOS daemon that uses NSTimers for scheduling user event >> reminders. >> >> This works well except for abrupt time changes: >> (1) the use

Re: NSWorkspace notifications related to time change

2019-12-18 Thread Carl Hoefs via Cocoa-dev
> On Dec 18, 2019, at 11:35 AM, James Walker via Cocoa-dev > wrote: > > On 12/18/19 9:55 AM, Carl Hoefs via Cocoa-dev wrote: > >> However, I cannot get this notification to fire on system time changes. My >> other notifications (such as sleep wake, etc) do fire. >> -Carl >> [[[NSWorkspa

Re: NSWorkspace notifications related to time change

2019-12-18 Thread James Walker via Cocoa-dev
On 12/18/19 9:55 AM, Carl Hoefs via Cocoa-dev wrote: However, I cannot get this notification to fire on system time changes. My other notifications (such as sleep wake, etc) do fire. -Carl [[[NSWorkspace sharedWorkspace] notificationCenter] addObserver: self selector: @sel

Re: NSWorkspace notifications related to time change

2019-12-18 Thread Carl Hoefs via Cocoa-dev
> On Dec 18, 2019, at 10:25 AM, Steve Mills via Cocoa-dev > wrote: > >> On Dec 18, 2019, at 11:19, Carl Hoefs via Cocoa-dev >> wrote: >> >> I have a macOS daemon that uses NSTimers for scheduling user event >> reminders. >> >> This works well except for abrupt time changes: >> (1) the u

Re: NSWorkspace notifications related to time change

2019-12-18 Thread Steve Mills via Cocoa-dev
> On Dec 18, 2019, at 11:19, Carl Hoefs via Cocoa-dev > 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 tim