• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: tableView - message sent to deallocated instance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: tableView - message sent to deallocated instance
      • From: Pax <email@hidden>
References: 
 >tableView - message sent to deallocated instance (From: Pax <email@hidden>)
 >Re: tableView - message sent to deallocated instance (From: Fritz Anderson <email@hidden>)
 >Re: tableView - message sent to deallocated instance (From: Pax <email@hidden>)

  • Prev by Date: Re: tableView - message sent to deallocated instance
  • Next by Date: Re: tableView - message sent to deallocated instance
  • Previous by thread: Re: tableView - message sent to deallocated instance
  • Next by thread: Re: tableView - message sent to deallocated instance
  • Index(es):
    • Date
    • Thread