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

Re: NSTextField notification if selection changed


  • Subject: Re: NSTextField notification if selection changed
  • From: Keary Suska <email@hidden>
  • Date: Mon, 27 Apr 2009 14:01:33 -0600


On Apr 27, 2009, at 11:48 AM, David Alter wrote:

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.


Once you get a reference to the field editor, you can observe its NSTextViewDidChangeSelectionNotification.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

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: 
 >NSTextField notification if selection changed (From: David Alter <email@hidden>)

  • Prev by Date: RED Camera SDK wrapper?
  • Next by Date: Re: Core Data Suddenly Losing Changes
  • Previous by thread: NSTextField notification if selection changed
  • Next by thread: Disabling NSNumberFormatter rounding?
  • Index(es):
    • Date
    • Thread