• 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: Detecting when a text view becomes First Responder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting when a text view becomes First Responder


  • Subject: Re: Detecting when a text view becomes First Responder
  • From: Graham Cox <email@hidden>
  • Date: Thu, 12 Nov 2015 10:18:19 +1100

> On 12 Nov 2015, at 10:14 AM, Ken Thomases <email@hidden> wrote:
>
> You can either use a subclass of NSTextView and override its -becomeFirstResponder method or you can use KVO to observe the firstResponder property of the window and, each time it changes, check if it's your text view.


Thanks - I suspected it might be another subclass case. The KVO idea sounds feasible as well, I’ll look into that.

—Graham



_______________________________________________

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: 
 >Detecting when a text view becomes First Responder (From: Graham Cox <email@hidden>)
 >Re: Detecting when a text view becomes First Responder (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Detecting when a text view becomes First Responder
  • Next by Date: Re: Detecting when a text view becomes First Responder
  • Previous by thread: Re: Detecting when a text view becomes First Responder
  • Next by thread: Stack View Question
  • Index(es):
    • Date
    • Thread