• 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 undo/redo question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView undo/redo question


  • Subject: NSTextView undo/redo question
  • From: Bill Cheeseman <email@hidden>
  • Date: Sun, 19 Aug 2001 09:47:08 -0400

NSTextView implements a method, setAllowsUndo:, which turns a text view's
built-in undo/redo behavior on and off.

My question: what is the target of the actions that are registered by
NSTextView's undo/redo routines?

I want to call NSUndoManager's removeAllActionsWithTarget: method in order
to clear the undo stack of actions relating to the text view, while leaving
other pending actions in the undo stack. But I can't identify a "target" for
this method that will work.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA

The AppleScript Sourcebook - www.AppleScriptSourcebook.com
Vermont Recipes - www.stepwise.com/Articles/VermontRecipes


  • Prev by Date: Re: Redeclaring overrides
  • Next by Date: Re: Redeclaring overrides
  • Previous by thread: Re: WTF? How can this work?
  • Next by thread: Re: NSTextView undo/redo question
  • Index(es):
    • Date
    • Thread