Re: NSTextField not getting mouseDown

2009-10-22 Thread Sander Stoks
On Oct 22, 2009, at 4:17 PM, Graham Cox wrote: What you want is to remove all this stuff and look at [NSPanel setBecomesKeyOnlyIfNeeded:] which deals with whatever is necessary for you. Standard text fields and so on should then work properly. Duh. That was indeed what I needed to do. My

Re: NSTextField not getting mouseDown

2009-10-22 Thread Jens Alfke
On Oct 22, 2009, at 7:08 AM, Sander Stoks wrote: But: if I cause editing to end by pressing the Enter key (instead of Tab), and then give another window the focus, clicking on the textfield doesn't cause a mouseDown to be receive anymore. The contents of the textfield stay selected (the f

Re: NSTextField not getting mouseDown

2009-10-22 Thread Graham Cox
On 23/10/2009, at 1:08 AM, Sander Stoks wrote: Background: I am using NSPanel to make a "tool window" for my app. This window contains a few buttons, sliders, and an NSTextField. I wanted this window to avoid becoming key, so that the user can select a new tool on this window without her

NSTextField not getting mouseDown

2009-10-22 Thread Sander Stoks
Hello all, Executive summary: I have an NSTextField in an NSPanel which, under certain circumstances, doesn't receive mouseDowns anymore. Specifically, this happens after I end editing with Enter (instead of Tab) Background: I am using NSPanel to make a "tool window" for my app. This