• 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
NSTextField notification if selection changed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextField notification if selection changed


  • Subject: NSTextField notification if selection changed
  • From: David Alter <email@hidden>
  • Date: Mon, 27 Apr 2009 10:48:19 -0700

How can I get notification if the Selection changed in a NSTextField. This
works with a NSTextView by setting up the delegate -
(void)textViewDidChangeSelection:(NSNotification *)aNotification

A NSTextField uses a NSTextView for its editing. And the NSTextField is the
delegate to the NSTextView. If I need to get the selection changed should I
be subclassing NSTextField and placing the textViewDidChangeSelection
delegate method in there. Or is there a simpler solution to this.

thanks for the help
-dave
_______________________________________________

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: NSTextField notification if selection changed
      • From: Keary Suska <email@hidden>
  • Prev by Date: NSTextField notification if selection changed
  • Next by Date: Re: Strange error message when trying to print
  • Previous by thread: NSTextField notification if selection changed
  • Next by thread: Re: NSTextField notification if selection changed
  • Index(es):
    • Date
    • Thread