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 <sstan...@myriad-com.com.au>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to