Newbie question regarding NSWindow
Newbie question regarding NSWindow
- Subject: Newbie question regarding NSWindow
- From: <email@hidden>
- Date: Fri, 28 Mar 2003 06:52:55 +0000
Hello.
I'm trying to port this game I made in 100% Java to Cocoa/Objective-C in order learn it. Basically it's a card game that uses only 1 window. My question is, how do I make the NSWindow invisible? Something like the Frame.setVisible(false) method in Java. I don't see any equivalents in reading the docs. What I want to happen is when the user clicks the close control, I plan to implement -(BOOL)windowShouldClose:(id)sender to return NO and I just hide the NSWindow instead, so that when the User chooses new from the File menu I can just make the window visible again. Is there a better way to do this? Thanks a lot.
Jino Noel, Wannabe Programmer
It is a miracle that curiosity survives formal education. -Albert Einstein
---
MacMail - the Webmail service especially for Mac users worldwide
http://www.macmail.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.