Re: Undo Manager (hac)
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