• 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: 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.

  • Prev by Date: Re: Custom Table Views
  • Next by Date: Re: Using NSTimer to call the main thread
  • Previous by thread: Re: Newbie question regarding NSWindow
  • Next by thread: NSImage scaling not well rendered and other few things...
  • Index(es):
    • Date
    • Thread