Re: NSUndoManager in non-NSDocument Cocoa Applications: unable to change 'Undo' menu item name.
Re: NSUndoManager in non-NSDocument Cocoa Applications: unable to change 'Undo' menu item name.
- Subject: Re: NSUndoManager in non-NSDocument Cocoa Applications: unable to change 'Undo' menu item name.
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 16 Jun 2004 16:17:48 -0600
On Jun 16, 2004, at 3:26 PM, Frederick C. Lee wrote:
However, I'm not using NSDocument in my appl so I have to create an
'undoManager' instance within the following paradigm:
Actually, you don't. Each responder has its own undo manager, so you
can get the undo manager from the first responder or whatever object.
Then you can interact with that undo manager, and if the object is the
first responder, then you'll see the changes in the Edit menu.
My SafariCookieCutter program implements undo and is not
document-based. You can download the app & source (included with the
app) from here: <
http://seiryu.home.comcast.net/scc.html>
Nick Zitzmann
<
http://www.chronosnet.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.