Re: NSTextView and -becomeFirstResponder
Re: NSTextView and -becomeFirstResponder
- Subject: Re: NSTextView and -becomeFirstResponder
- From: Conrad Shultz <email@hidden>
- Date: Wed, 22 Feb 2012 16:31:48 -0800
On 2/19/12 9:29 PM, Jim McGowan wrote:
> Hi,
>
> I have an NSTextView subclass and I need it to inform another object
> of when it becomes first responder - along the lines of overriding
> -becomeFirstResponder something along the lines of this:
Subclassing seems like too much of a sledgehammer.
How about you approach this in reverse: have the other object observe
the text view's window's firstResponder?
(Of particular note: "In Mac OS X v10.6 and later, firstResponder is
key-value observing compliant.")
--
Conrad Shultz
Synthetiq Solutions
www.synthetiqsolutions.com
_______________________________________________
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