NSUndoManager across multiple nibs
NSUndoManager across multiple nibs
- Subject: NSUndoManager across multiple nibs
- From: "Matt Ball" <email@hidden>
- Date: Thu, 30 Mar 2006 18:49:31 -0500
I am working on a document-based app which has a main window with a
view for drawing in, and a palette with a tableview displaying the
various layers. I am implementing undo support in it right now, and
I've run into a snag.
Actions generated by anything in the main window undo fine. However,
any actions generated by the layers palette do not get added to the
undo stack. In my layersController class, I have:
- (NSUndoManager *)undoManager {
return [[[NSApp delegate] currentDocument] undoManager];
}
where currentDocument is a pointer to the current document in my
AppController class. Does anyone know what I need to do to get actions
in the layers palette to add themselves to the document's undoManager?
I've already overridden the panel's delegate's
windowWillReturnUndoManager: but it didn't help; I can undo actions
generated in the document window while the layers palette is key, but
actions in the layers palette itself still don't register.
Any help would be appreciated.
Thanks,
Matt Ball
_______________________________________________
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