My Cocoa application in objective-c has two windows, A and B, that contain helper functionality. The user might not always want these windows to be open (think brush size or color wheel in Gimp). I want the application to remember whether each of these windows was open or closed between each instantiation of the program. For instance:
User opens the program, and both Windows A and B are open
The user closes window A but not window B
User closes the program
User opens the program
Only window B is open, window A is closed
User opens window A
User closes the program
User opens the program
Both windows B and A are open
Is there a way to remember this type of history in Cocoa? Google has not been my friend in this search.