On Jul 11, 2014, at 2:54 AM, Quincey Morris 
<quinceymor...@rivergatesoftware.com> wrote:

> I guess you could solve it with a NSTextField subclass that overrides 
> becoming first responder. Or is there a more direct solution, do you think?


Yes, that's exactly what I do, and it works. Override -[NSResponder 
becomeFirstResponder]. In fact, I think of that as the most "direct solution." 
The NSResponder reference document says "Subclasses can override this method to 
update state or perform some action such as highlighting the selection...."

The text fields in table and outline views attempt to become first responder 
when the user left clicks in them. That's wired into AppKit. This is explained 
somewhere in the documentation, but I forget where.

-- 

Bill Cheeseman - b...@cheeseman.name

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to