Re: NSTextView delegate methods in NSTextView subclass.
Re: NSTextView delegate methods in NSTextView subclass.
- Subject: Re: NSTextView delegate methods in NSTextView subclass.
- From: Keary Suska <email@hidden>
- Date: Wed, 6 May 2009 08:38:45 -0600
On May 6, 2009, at 3:35 AM, Тимофей Даньшин wrote:
I have subclassed NSTextView and I am using that subclass as a field
editor for an NSTextField. On certain events in the field editor, i
need to take certain actions again in the field editor, and as of
now i have to use delegate methods in the TextField's delegate to
call methods in the TextView, even though the messages that call
those delegate methods, originate in the TextView.
Is there a way to receive the notifications on those events
(triggering the delegate methods) in the NSTextView subclass?
The one I am particularly interested in is -controlTextDidChange;
Any delegate method that takes an NSNotification as its sole argument
is just a notification. Check the documentation for the notification
name and simply observe for the notification.
HTH,
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