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

Detecting when a text view becomes First Responder


  • Subject: Detecting when a text view becomes First Responder
  • From: Graham Cox <email@hidden>
  • Date: Thu, 12 Nov 2015 10:04:28 +1100
  • X_v_e_cd: 179f37874d2297cdcc3c6d64a76ee90c
  • X_v_r_cd: 0e0ba89708e6fb793ed2a92c57097358

I need to know when a text view becomes First Responder. I thought the notification NSTextDidBeginEditingNotification would do it, but that’s only sent when the user starts typing in the text view, which is too late for my purposes.

Is there another notification that I could use that signals a view has become FR? I couldn’t see anything either specific to NSTextView (or NSText) or views/responders in general. I’d prefer not to have to use a text view subclass if possible, though if that’s the only way so be it.

—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


  • Follow-Ups:
    • Re: Detecting when a text view becomes First Responder
      • From: Ken Thomases <email@hidden>
    • Re: Detecting when a text view becomes First Responder
      • From: Dave Fernandes <email@hidden>
  • Prev by Date: Re: Set editable string into NSTextFieldCell
  • Next by Date: Re: Detecting when a text view becomes First Responder
  • Previous by thread: Re: Set editable string into NSTextFieldCell
  • Next by thread: Re: Detecting when a text view becomes First Responder
  • Index(es):
    • Date
    • Thread