• 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 (hac)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undo Manager (hac)


  • Subject: Re: Undo Manager (hac)
  • From: David Phillip Oster <email@hidden>
  • Date: Sat, 21 Apr 2007 19:29:55 -0700

At Sat, 21 Apr 2007 12:50:53 -0400 hac <email@hidden> wrote:
I'm trying to register an undo operation in a text view. At the
moment, my code for this is:

[[textArea undoManager] registerUndoWithTarget:textArea
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


  • Prev by Date: Re: NSSound + NSBundle
  • Next by Date: Re: Correct way to create a subview at runtime
  • Previous by thread: Re: NSSound + NSBundle
  • Next by thread: Re: Cocoa-dev Digest, Vol 4, Issue 390
  • Index(es):
    • Date
    • Thread