Re: NSTextField not getting mouseDown
Re: NSTextField not getting mouseDown
- Subject: Re: NSTextField not getting mouseDown
- From: Jens Alfke <email@hidden>
- Date: Thu, 22 Oct 2009 08:55:01 -0700
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 focus ring is, of
course, gone).
Probably because the textfield is still the window's first responder
(even though the window isn't key). In that situation there's an
NSTextView overlaid on the text field, which actually does the
editing, so clicks go to the text view instead of the field itself.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden