• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextField not getting mouseDown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTextField not getting mouseDown (From: Sander Stoks <email@hidden>)

  • Prev by Date: Re: Sending a Selector to another Class.
  • Next by Date: Re: Sending a Selector to another Class.
  • Previous by thread: Re: NSTextField not getting mouseDown
  • Next by thread: NSScroller graphical lag/glitches
  • Index(es):
    • Date
    • Thread