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 (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

Reply via email to