Re: Newbie question regarding NSWindow
Re: Newbie question regarding NSWindow
- Subject: Re: Newbie question regarding NSWindow
- From: Steve Woodward <email@hidden>
- Date: Fri, 28 Mar 2003 07:05:45 -0500
Check out the orderOut: method...and the isVisible method for checking
visibility.
Steve W
On Friday, March 28, 2003, at 01:00 AM,
email@hidden wrote:
Message: 2
To: <email@hidden>
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
_______________________________________________
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.