Re: NSUndoManager in non-document based app using bindings
Re: NSUndoManager in non-document based app using bindings
- Subject: Re: NSUndoManager in non-document based app using bindings
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 15 Sep 2004 10:38:39 -0700
On Sep 14, 2004, at 6:00 AM, Dirk van Oosterbosch wrote:
in some sense this is a continuation of the thread left open in
http://www.cocoabuilder.com/archive/message/cocoa/2004/6/18/110021
I am trying to make a simple app with a tableView and I have a
NSArrayController to manage it, using bindings. Now I would like to
add undo functionality. But since I chose to *not* make it
document-based, I'm having some problem implementing it.
[...] how do I get the proper NSUndoManager?
Probably the only relevant differences here between a document-based
and a non-document-based application are:
(a) As you discovered, you'll probably have to create some bindings
programatically;
(b) NSDocument provides an NSUndoManager for you.
NSDocument's undo manager is just an instance variable accessed using
accessor methods. If you're not using NSDocument, your application
controller should provide an undo manager in a similar way.
How you use and integrate with the undo manager should be the same in
whether the app is document-based or not.
See also:
<http://www.cocoabuilder.com/archive/message/2004/8/23/115315>
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden