Re: UndoManager for NSApplication
Re: UndoManager for NSApplication
- Subject: Re: UndoManager for NSApplication
- From: Keary Suska <email@hidden>
- Date: Tue, 16 Jun 2009 09:03:24 -0600
On Jun 16, 2009, at 7:45 AM, Reza Farhad wrote:
I would like to have the facility of undoing deleting of a window.
The best way that I thought I could do this is was to use the
UndoManager belonging of my NSApplication. However when I try to get
the undoManager for the application by calling:
[ NSApp undoManager ]
I get a nil pointer.
Also I could not see any straight forward way of setting an
undoManager for a NSResponder.
Any suggestions how I can resolve this issue.
AFAIK, of the NSResponders only NSWindow creates its own
NSUndoManager. Now, any responder on a window will automatically
search up the responder chain for an undo manager, so it should
automatically get the window's.
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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