[NSTextView] Shift left / Undo manager
[NSTextView] Shift left / Undo manager
- Subject: [NSTextView] Shift left / Undo manager
- From: Iceberg-Dev <email@hidden>
- Date: Wed, 30 Sep 2009 22:19:01 +0200
I am currently busy re-inventing the wheel in the form a code editor.
I support Shift Left and Shift Right.
I would like to support Undo on Shift Left.
I'm wondering how this should be done as this operation modifies both
the selected range(s) and the text.
I searched the archives, the NSTextView header, documentation, looked
at some source code.
I am able to support the undo operation for the text changes but the
selected range(s) is/are not reverted to the correct value(s).
From what I can see, Xcode (on Tiger) does not handle the selection
correctly in this case either (though the result is better than mine)
Any idea?
_______________________________________________
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