Re: View-based outline view problem
Re: View-based outline view problem
- Subject: Re: View-based outline view problem
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 11 Jul 2014 05:54:02 -0400
On Jul 11, 2014, at 2:54 AM, Quincey Morris <email@hidden> 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 - email@hidden
_______________________________________________
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