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
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
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