• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextView and -becomeFirstResponder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView and -becomeFirstResponder


  • Subject: Re: NSTextView and -becomeFirstResponder
  • From: Jim McGowan <email@hidden>
  • Date: Thu, 23 Feb 2012 09:15:03 +0800

On 23 Feb 2012, at 08:31, Conrad Shultz <email@hidden> 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 (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


References: 
 >NSTextView and -becomeFirstResponder (From: Jim McGowan <email@hidden>)
 >Re: NSTextView and -becomeFirstResponder (From: Conrad Shultz <email@hidden>)

  • Prev by Date: Re: NSTextView and -becomeFirstResponder
  • Next by Date: Re: NSStepper - useless?
  • Previous by thread: Re: NSTextView and -becomeFirstResponder
  • Next by thread: allow users to opt-out of iCloud
  • Index(es):
    • Date
    • Thread