• 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
Undo/redo in sheets?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Undo/redo in sheets?


  • Subject: Undo/redo in sheets?
  • From: Pete Yandell <email@hidden>
  • Date: Sun, 15 Sep 2002 12:41:57 +1000

I dug up on old thread on this topic in the archives (http://lists.apple.com/archives/cocoa-dev/2001/Oct/08/ undoinasheetnotakers.txt), but it didn't seem to have any answers.

The problem is this: whenever I have a sheet open, the Undo and Redo menu items are disabled.

My sheet allows editing of a list of items in an NSTableView, and I want to be able to allow undo for creation of new items, deletion of items, renaming of items, etc.

I can happily register the events with the undo manager, and they can be undone after the sheet closes, but not while it's open. How can I convince the system to re-enable the Undo and Redo menu items while the sheet is visible?

Now this may be a philosophical thing: perhaps I'm trying to put too much functionality into a sheet? Perhaps sheets should be kept for simple modal things like save dialogs? In fact, what I'm trying to do with the sheet doesn't really even need to be modal. Using a sheet does, however, seem to make more sense from a user perspective than implementing it as, for example, a drawer. Any thoughts on the UI side of this type of thing?

The app in question, for anyone familiar with it, is MIDI Monitor and can be grabbed from http://pete.yandell.com/software/ The sheet I'm talking about is the one for editing virtual MIDI inputs and outputs.

Pete Yandell
http://pete.yandell.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Undo/redo in sheets?
      • From: Dustin Voss <email@hidden>
    • Re: Undo/redo in sheets?
      • From: Pete Yandell <email@hidden>
  • Prev by Date: Re: Conflicting Namespaces on the Language Level
  • Next by Date: Re: Undo/redo in sheets?
  • Previous by thread: What's the Deal?
  • Next by thread: Re: Undo/redo in sheets?
  • Index(es):
    • Date
    • Thread