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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to