Re: tableView - message sent to deallocated instance
Re: tableView - message sent to deallocated instance
- Subject: Re: tableView - message sent to deallocated instance
- From: Kyle Sluder <email@hidden>
- Date: Wed, 26 Feb 2014 13:11:07 -0800
On Wed, Feb 26, 2014, at 12:42 PM, Pax wrote:
> Thanks for your help. The problem is now solved - although I'm still none
> the wiser as to why the problem only manifested when the file was opened
> and then the document closed before the file was closed. I'm kind of
> curious to understand what was going on under the hood that might explain
> this oddity - but I suppose I'll never know.
You _can_ know. It's not that hard. And until you _do_ know, the bug
isn't fixed.
> The solution to the problem was to empty the array populating the table
> and then reload the table before closing the document. It feels like an
> oddly unnecessary extra step.
That's not a solution. It's programming by chance.
My spidey senses tell me that the crash happens because you forgot to
nil out the table view's delegate in your window controller's -dealloc.
--Kyle Sluder
_______________________________________________
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