Re: Finding out about all user level changes in NSTextView?
Re: Finding out about all user level changes in NSTextView?
- Subject: Re: Finding out about all user level changes in NSTextView?
- From: Edwin Zacharias <email@hidden>
- Date: Fri, 31 May 2002 11:01:11 -0400
Undo and redo are, in my opinion, badly implemented in NSTextView. For
example, if you use AppleScript to change it, it won't register an undo
event. This is because undo is implement at the view layer rather than
at the model layer where it belongs. I have a fix for this. It adds an
undo manager to NSTextSorage rather than using the one for NSTextView.
Email me if you want it.
- Edwin
On Friday, May 31, 2002, at 09:51 AM, Jim Correia wrote:
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.
_______________________________________________
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.