Re: return press and edit text

2016-12-01 Thread J.E. Schotsman
> On 30 Nov 2016, at 22:04, Quincey Morris wrote: > > The problem is that NSWindowController doesn’t implement the other informal > protocol (NSEditorRegistration) that is the way that editors are supposed to > be kept track of. The easiest way to get around this is for your OK button > action

Re: return press and edit text

2016-11-30 Thread J.E. Schotsman
> On 30 Nov 2016, at 22:04, Quincey Morris > wrote: > > For #2, you shouldn’t need to use any delegates. Instead, you need to get the > text field to commit its edit. There is an informal protocol for this > (NSEditor), which text fields conform to. > > The problem is that NSWindowController

Re: return press and edit text

2016-11-30 Thread Quincey Morris
On Nov 30, 2016, at 10:41 , J.E. Schotsman wrote: > > a hit on return acts on both the default button and a text field that is > being edited in the same window. > > The text field gets the event first, then the OK button, which is probably > what the user wants. I must admit I don’t remember