• 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: Stupid question: how do you show an NSWindow?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stupid question: how do you show an NSWindow?


  • Subject: Re: Stupid question: how do you show an NSWindow?
  • From: Dave Hersey <email@hidden>
  • Date: Mon, 10 Mar 2008 14:30:05 -0400

Just a guess, but is the window set to "Release when closed" in IB?

You probably want to orderOut: it, not close it. Then makeKeyAndOrderFront: will do what you want. makeKeyAndOrderFront does make the window visible if it's not, but your window has probably been released from the close so it's not working.

- d

On Mar 10, 2008, at 2:12 PM, Nathaniel Gottlieb-Graham wrote:

This is going to sound really stupid, but how do you show an NSWindow? [aWindow close] seems to be the appropriate method to close it, but idiotically enough, I can't seem to find a way re-show the window once it's no longer on-screen. [aWindow makeKeyAndOrderFront:sender] will only bring the window forward if it's already visible, and doesn't seem to do anything if the window isn't already there. I've searched through NSWindow's class reference, and I may be overlooking something obvious, but I just can't seem to figure this out.


Thanks, Nathaniel
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Stupid question: how do you show an NSWindow? (From: Nathaniel Gottlieb-Graham <email@hidden>)

  • Prev by Date: Re: fileExistsAtPath with * to indicate random
  • Next by Date: Re: Stupid question: how do you show an NSWindow?
  • Previous by thread: Re: Stupid question: how do you show an NSWindow?
  • Next by thread: Re: Stupid question: how do you show an NSWindow?
  • Index(es):
    • Date
    • Thread