Lingering windows
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