Re: crash on command-W
Re: crash on command-W
- Subject: Re: crash on command-W
- From: "James W. Walker" <email@hidden>
- Date: Tue, 10 Jun 2008 22:11:06 -0700
On Jun 10, 2008, at 7:24 AM, Adam R. Maxwell wrote:
On Jun 9, 2008, at 10:30 PM, James W. Walker wrote:
On Jun 9, 2008, at 9:18 PM, Andrew Farmer wrote:
On 09 Jun 08, at 21:03, James W. Walker wrote:
OK, I turned on NSZombieEnabled, and now I get this in the log:
*** -[LogController tableView:objectValueForTableColumn:row:]:
message sent to deallocated instance
That means that the LogController itself has been deallocated,
not some member that the method uses, right? All this tells me
is that somebody is trying to draw the table after the controller
has been released and the window has been hidden if not
released. I pretty much knew that already.
In your windowWillClose method, set the tableview datasource and
delegate to nil, so it stops messaging your controller. This is a
good habit to get into with datasource/delegate objects.
Thanks for the advice, that sounds reasonable.
_______________________________________________
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