• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UndoManager for NSApplication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >UndoManager for NSApplication (From: Reza Farhad <email@hidden>)

  • Prev by Date: UndoManager for NSApplication
  • Next by Date: Re: get ref to instance from IB
  • Previous by thread: UndoManager for NSApplication
  • Next by thread: using performSelectorInBackground
  • Index(es):
    • Date
    • Thread