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