• 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
Re: Undo Manager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undo Manager


  • Subject: Re: Undo Manager
  • From: hac <email@hidden>
  • Date: Mon, 23 Apr 2007 16:49:35 -0400

Well, the undo manager only takes care of thigs the user changes, and
sometimes my application needs to edit the text view.

I'm trying to register an undo operation in a text view. At the
moment, my code for this is:

[[textArea undoManager] registerUndoWithTarget:textAre>a
selector:@selector(setString:)
object:[textArea string]];

Why? Make your model undoable, and your view and controller will take care of themselves.

Give your NSTextView an undo manager, and it will take care of itself.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Undo Manager
      • From: James Housley <email@hidden>
  • Prev by Date: Re: [PDFOutline destination] returns NULL
  • Next by Date: Inefficient drawing - NSTableView + NSArrayController
  • Previous by thread: Undo Manager
  • Next by thread: Re: Undo Manager
  • Index(es):
    • Date
    • Thread