On 23 Feb 2012, at 08:31, Conrad Shultz <con...@synthetiqsolutions.com> wrote:

> 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?

Good point about observing -firstResponder, but I'm already creating the 
subclass for a bunch of other reasons, so it was convenient override 
-becomeFirstResponer.

Jim
_______________________________________________

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