On Feb 7, 2009, at 8:45 PM, Matt Neuburg wrote:

BAD! BAD! BAD! BAD!
In my case, I have a document window with a table view in it, where
data source and delegate are the window controller. If the window is
oneShot NO, then the window controller is deallocated, but the views
in the window are still alive, and it tries to draw those views,
sending table view data source methods to the deallocated window
controller.
KABOOM.

Are you sure you're barking up the right tree?

Absolutely. 100% reproducible in a bare bones app. I should have posted this in the first message:

http://www.sethwillits.com/temp/OneShotDocTest.zip

As is, launch the app, close the window using Cmd-W and it will crash. (Clicking on the close widget works fine.)
Go into the nib and change One Shot to YES and it will not not crash.


--
Seth Willits



_______________________________________________

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