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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com