Re: UndoManager for NSApplication
Re: UndoManager for NSApplication
- Subject: Re: UndoManager for NSApplication
- From: Kyle Sluder <email@hidden>
- Date: Tue, 16 Jun 2009 16:34:10 -0700
So essentially you want to mimic IB? Register your window
creation/deletion methods with an NSUndoManager that lives in your app
delegate (or elsewhere in the responder chain). Then your "deletion"
is really just hiding the window from view. If the user undoes the
deletion, the window is shown again. If the window is "deleted" and
the app is closed, you don't have to recreate the window when you next
start up.
--Kyle Sluder
_______________________________________________
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