Re: One Shot Windows: WARNING
Re: One Shot Windows: WARNING
- Subject: Re: One Shot Windows: WARNING
- From: Seth Willits <email@hidden>
- Date: Sat, 7 Feb 2009 21:06:20 -0800
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 (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