• 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: Nathaniel Gottlieb-Graham <email@hidden>
  • Date: Mon, 10 Mar 2008 20:06:37 -0400

Um, never mind. The problem has disappeared! There was nothing in the console at all. I think I had mistyped something or used the wrong -orderOut: method.


On Mar 10, 2008, at 7:09 PM, Mike Abdullah wrote:

To me this sounds like an exception is occurring during code called when clicking the close button. Anything in the console?

Mike.

On 10 Mar 2008, at 21:40, Nathaniel Gottlieb-Graham wrote:

Okay, now I have another problem. When the window in question is closed programmatically using -orderOut:, I can bring it back using -makeKeyAndOrderFront: , and then order it out again and repeat this procedure as many times as I want. However, when I click on the window's close button, when I bring it back with - makeKeyAndOrderFront:, the window "freezes" and its close button appears constantly held down (the window isn't being released when closed). How should I handle this? Do I need to use an NSWindowController (and how do I do this), etc.

Thanks again for all the help thus far!


On Mar 10, 2008, at 2:31 PM, Matt Mashyna wrote:

Well, I can think of something. I do this all the time for things like an info window. I have an app controller with an IBOutlet to the window I want to hide and show and I call [aWindow makeKeyAndOrderFront:self] to show it and [aWindow close] to hide it. You need to make sure that you have the "Release when Closed" checkbox turned off in IB to make sure it doesn't, uh ... get released when closed.


If it's not showing when you do this, look in the debugger console to see if you are getting an exception and check in the debugger when you are about to show it and see if it's stale.

Hope that helps.

Matt


_______________________________________________

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


_______________________________________________

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>)
 >Re: Stupid question: how do you show an NSWindow? (From: Matt Mashyna <email@hidden>)
 >Re: Stupid question: how do you show an NSWindow? (From: Nathaniel Gottlieb-Graham <email@hidden>)
 >Re: Stupid question: how do you show an NSWindow? (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Is IKImageView actually supposed to work?
  • Next by Date: Re: [iPhone] xml parsing
  • Previous by thread: Re: Stupid question: how do you show an NSWindow?
  • Next by thread: Re: Linking to third-party Frameworks and dylibs from a plug-in
  • Index(es):
    • Date
    • Thread