• 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
undo text in an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: undo text in an NSTextView
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: NSButton in NSTextField
  • Next by Date: Re: Addressbook api
  • Previous by thread: NSButton in NSTextField
  • Next by thread: Re: undo text in an NSTextView
  • Index(es):
    • Date
    • Thread