Hey gang,
I like Finder's behavior of restoring all tabs of the final window that was closed. I would like to mimic this behavior in my own app. The problems I've had doing this seem to stem from the fact that tab closures appear just like window closures and there's no indication that a grouping of tabs is being closed all at once.
My first thoughts for doing this:
- Instead of removing and deallocating the last window, just hide it.
Does not work because all tabs are closed except the last one, which gets hidden
- Hide the entire application when the user clicks the "red" close button and there's only one "tab-group-window" left.
I can't differentiate between the red-close button (which I want to close that app) and a tab close button(which I would want to use to actually close the tab)
My problem's source seems to be that tab closures appear just like window closures and there's no indication that a grouping of tabs is being closed all at once.
Any other strategies for this? Maybe I'm thinking about it the wrong way?