undo text in an NSTextView
undo text in an NSTextView
- Subject: undo text in an NSTextView
- From: nicky <email@hidden>
- Date: Fri, 6 Sep 2002 14:13:08 +0200
Hi all,
We have a override of the class NSTextView.
We want to be able do "undo typing" in editmode and out of editmode.
This is not possible through the automatic undoing of the NSTextView,
because al operations on stack will be gone when the NSTextView is not
the first responder anymore.
When we go out of editmode all operations are gone, except for one
"undo typing"
The NSTextView doesn't respond to this "undo typing" . Why is that?
What we want is a little bit the same as in the "sketch" example. The
thing there is that apple implemented a "undo selection changed"
between the two "undo typings"
If we remove the "undo selection changed" from the example, all text
will be removed at once.
What we want is this:
- set the textView in edit mode
- type some text :"hello"
- go out of edit mode
- return to edit mode
- type again :"all"
- go out of edit mode
- "undo typing" (should remove "all") (in the sketch example now "hello
all" is removed)
- "undo typing" (should remove "hello")
with regards,
Nicky and Ruben
_______________________________________________
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.