• 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
Lingering windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Lingering windows


  • Subject: Lingering windows
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 09 Aug 2011 22:24:52 +1000

I have a document-based application that uses garbage collection. It's straight-forward in terms of having subclasses of NSDocument, NSWindow, and NSWindowController, and documents have a single window (with drawer, if that makes any difference).

But when I close a window/document, the window gets orderedOut, so it never closes. I can, for example, use the scripting interface after a document has been closed and make its window visible again.

When I close I see performClose: being called, windowShouldClose: being called on the delegate (the window controller), then close on the window, followed by windowWillClose: on the delegate, and then orderOut on the window.

Any thoughts/suggestions?

--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

_______________________________________________

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

  • Follow-Ups:
    • Re: Lingering windows
      • From: Quincey Morris <email@hidden>
    • Re: Lingering windows
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Using #define a good way for String constants, like enums for NSIntegers?
  • Next by Date: Re: help with this error
  • Previous by thread: Re: Frameworks (ConnectionKit)
  • Next by thread: Re: Lingering windows
  • Index(es):
    • Date
    • Thread