Finding out about all user level changes in NSTextView?
Finding out about all user level changes in NSTextView?
- Subject: Finding out about all user level changes in NSTextView?
- From: Jim Correia <email@hidden>
- Date: Fri, 31 May 2002 09:51:56 -0400
I have a text view that I'd like to find out about all changes in.
In the delegate I've implemented
- (void)textDidChange:(NSNotification *)notification
{
if ([notification object] == myTextView)
{
NSLog(@"text view changed");
}
}
This is called for typing, paste, delete, drag and drop (more?).
It isn't called for undo/redo though.
Are there any other user level changes that can be made to the text
view that won't fire this notification?
Is there a hook for me to be notified about the undo/redo changes?
(I am using the undo manager supplied by the text view. I see that
the undo manager broadcasts notifications but I don't see how to
ask the text view what undo manager it is using so I can register
for those notifications.)
Thanks,
Jim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.