I'm seeing numerous issues with the "Show All Tabs" menu item that is added automatically to the View menu:
1) there are apparently no ways to know that the window is going to display all the tabs as a collection of "thumbnails". I haven't seen a notification or delegate method for this (in NSWindow, NSWindowController, NSDocument, NSApplication, NSDocumentController).
This is a problem when for instance you've attached a child window:
- the thumbnail collection can be partially hidden by the child window.
- the context is no more the same. The child window probably has no reason to be dislayed in this context.
- the child window does not appear in the thumbnail.
2) The "Show All Tabs" menu item is enabled when it should obviously not be.
Let's say you have a sheet currently being attached to the window. If you choose "Show All Tabs", the sheet is still displayed and the collection view appears behind it.
Questions
- Are there some notifications being sent when "Show All Tabs" is invoked?
- Is the AppKit going to be clever and disable the "Show All Tabs" in obvious cases? Or do we have to deal with this ourselves?