Click-through on NSTextField
Click-through on NSTextField
- Subject: Click-through on NSTextField
- From: David Catmull <email@hidden>
- Date: Wed, 10 Jan 2007 14:05:20 -0800
What do I need to do to have click-through behavior on an
NSTextField? I have a floating window with some text fields, and I
want the fields to immediately respond to mouse clicks whether the
window is key or not.
I tried subclassing NSTextField and returning YES from
acceptsFirstMouse, but that didn't help. In fact, it seems
NSTextField already does that. I tried overriding mouseDown, but it
doesn't seem to get called.
Then I tried using a custom field editor, but neither
acceptsFirstMouse nor mouseDown gets called on it.
--
David Catmull
email@hidden
http://www.uncommonplace.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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