• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie question regarding NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Newbie question regarding NSWindow (From: <email@hidden>)

  • Prev by Date: Newbie question regarding NSWindow
  • Next by Date: NSImage scaling not well rendered and other few things...
  • Previous by thread: Newbie question regarding NSWindow
  • Next by thread: Re: Newbie question regarding NSWindow
  • Index(es):
    • Date
    • Thread