Re: Newbie question regarding NSWindow
Re: Newbie question regarding NSWindow
- Subject: Re: Newbie question regarding NSWindow
- From: j o a r <email@hidden>
- Date: Fri, 28 Mar 2003 07:09:49 +0100
From NSWindow:
hide:
public void orderOut(Object sender)
show:
public void orderFront(Object sender)
j o a r
On Friday, Mar 28, 2003, at 07:52 Europe/Stockholm, <email@hidden>
wrote:
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.
_______________________________________________
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.