Re: want to keep a main window still, not close

2008-04-09 Thread Robert Napier
If you really mean main window in the NSWindow sense (makeMainWindow), then you will want to look at the windowShouldClose delegate method (as mentioned by Jack) and observe the NSWindowDidResignMainNotification notification for the window so you can set it back. More likely, though, you

Re: want to keep a main window still, not close

2008-04-08 Thread Jack Repenning
On Apr 8, 2008, at 2:31 PM, norio wrote: Would you tell me how to remain the main window? Of course, it must close if user clicks the close box of the window. I'm not certain I understand your whole question, but at least a part of the answer seems to be to define - (BOOL)windowS

want to keep a main window still, not close

2008-04-08 Thread norio
Hi, My app is not a document-based application. And it has a main window and other windows. What I want to ask you to tell me is how to remain still the main window even if user option-clicks the close box of one of the other windows. I tried observing with its name nil and object nil. But