• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[NSTextView] Shift left / Undo manager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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


  • Prev by Date: Re: Sleep, NSWorkspaceWillSleepNotification, 30 seconds and the run loop
  • Next by Date: Re: Strange Core Data save behaviour ("required relationship nil"... when it is set the line before saving)
  • Previous by thread: poor performance when scrolling scaled text view, with small number of characters per line only
  • Next by thread: Re: Strange Core Data save behaviour ("required relationship nil"... when it is set the line before saving)
  • Index(es):
    • Date
    • Thread