Re: Why are the simplest things the hardest?

2018-07-07 Thread Richard Charles
> On Jul 6, 2018, at 10:55 PM, Rick Mann wrote: > > If I have view commands (like fixed perspectives in a 3D view) in a menu, I > should be able to implement those on the view controller, don't you think? It depends if the view controller is in the responder chain for the object in question.

Re: Why are the simplest things the hardest?

2018-07-07 Thread Allan Odgaard
On 7 Jul 2018, at 6:55, Rick Mann wrote: If I have view commands (like fixed perspectives in a 3D view) in a menu, I should be able to implement those on the view controller, don't you think? No-one is preventing you from implementing view commands in the view controller. But if you want

Re: Why are the simplest things the hardest?

2018-07-06 Thread Rick Mann
> On Jul 5, 2018, at 01:31 , Allan Odgaard wrote: > > On 5 Jul 2018, at 6:44, Rick Mann wrote: > >> Annoying I have to have a first responder view just to allow even my >> Document to respond to menu commands. > > Quoting the >

Re: Why are the simplest things the hardest?

2018-07-05 Thread Allan Odgaard
On 5 Jul 2018, at 6:44, Rick Mann wrote: Annoying I have to have a first responder view just to allow even my Document to respond to menu commands. Quoting the

Re: Why are the simplest things the hardest?

2018-07-04 Thread Rick Mann
Weird. Examining the firstResponder shows it is, in fact, my SCNView subclass. Yet menu actions to the first responder don't propagate up. > On Jul 4, 2018, at 21:31 , Ken Thomases wrote: > > On Jul 4, 2018, at 10:45 PM, Rick Mann wrote: >> >> I've overridden -acceptsFirstResponder to return

Re: Why are the simplest things the hardest?

2018-07-04 Thread Rick Mann
> On Jul 4, 2018, at 21:31 , Ken Thomases wrote: > > On Jul 4, 2018, at 10:45 PM, Rick Mann wrote: >> >> I've overridden -acceptsFirstResponder to return true on the window >> controller and view controllers. > > That doesn't do anything. -acceptsFirstResponder is a view method and is >

Re: Why are the simplest things the hardest?

2018-07-04 Thread Rick Mann
> On Jul 4, 2018, at 21:31 , Ken Thomases wrote: > > On Jul 4, 2018, at 10:45 PM, Rick Mann wrote: >> >> I've overridden -acceptsFirstResponder to return true on the window >> controller and view controllers. > > That doesn't do anything. -acceptsFirstResponder is a view method and is >

Re: Why are the simplest things the hardest?

2018-07-04 Thread Ken Thomases
On Jul 4, 2018, at 10:45 PM, Rick Mann wrote: > > I've overridden -acceptsFirstResponder to return true on the window > controller and view controllers. That doesn't do anything. -acceptsFirstResponder is a view method and is only called on views, not controllers. > I don't have any custom

Re: Why are the simplest things the hardest?

2018-07-04 Thread Rick Mann
> On Jul 4, 2018, at 20:40 , Ken Thomases wrote: > > On Jul 4, 2018, at 9:08 PM, Rick Mann wrote: >> >> I'm writing a new macOS app. I started with the document-based app template >> (no core data). I have a custom window controller, and a hierarchy of custom >> NSViewControllers embedded

Re: Why are the simplest things the hardest?

2018-07-04 Thread Ken Thomases
On Jul 4, 2018, at 9:08 PM, Rick Mann wrote: > > I'm writing a new macOS app. I started with the document-based app template > (no core data). I have a custom window controller, and a hierarchy of custom > NSViewControllers embedded in a split view controller (I even subclassed the > split

Why are the simplest things the hardest?

2018-07-04 Thread Rick Mann
I'm writing a new macOS app. I started with the document-based app template (no core data). I have a custom window controller, and a hierarchy of custom NSViewControllers embedded in a split view controller (I even subclassed the split view controller). I have a simple IBAction method that