Re: NSTextField notification if selection changed
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