Preferred methods for usig NSOutlineView

2019-12-18 Thread Jeff Younker via Cocoa-dev
I've been playing around with the NSOutlineView, and as seems to be the usual case, the documentation from Apple is seriously deficient. I've been trying to use bindings to a tree controller, but I'm having difficulty getting element selection to work. I'm guessing that this would be done by bindi

NSWorkspace notifications related to time change

2019-12-18 Thread Carl Hoefs via Cocoa-dev
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 ti

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

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 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 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 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 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 à 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 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 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: Preferred methods for usig NSOutlineView

2019-12-18 Thread Turtle Creek Software via Cocoa-dev
We set the main window controller as both delegate and data source for the outline view. shouldSelectItem in the delegate handles clicks. For right clicks, we had to add code in the view. It was pretty straightforward. Apple has a sample project, but it's outdated and not very useful. Casey Mc

Re: Catalina scroll view issues

2019-12-18 Thread Redler Eyal via Cocoa-dev
> Since you’re using CoreGraphics, it’s very likely there’s an edge case with > your customers’ systems that you aren’t encountering. CG is pretty much the > lowest practical level in the graphics stack. Since your app does reproduce > the issue but in other configurations than yours, you could