• 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: Odd Crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd Crash


  • Subject: Re: Odd Crash
  • From: Scott Ribe <email@hidden>
  • Date: Thu, 24 Sep 2015 10:14:24 -0600

On Sep 24, 2015, at 10:02 AM, Jens Alfke <email@hidden> wrote:
>
> This is a pretty common type of crash. You’ve got an NSTableView whose dataSource has been dealloced, so it tried to call the dataSource and crashed.
> If you want to catch this in the debugger, turn Zombie Objects on.
> Most likely the problem is that the window got closed but not released, so it and its views are still in memory.

There's another possibility:

Switching from older SDK to 10.9 or 10.10 (I forget which) changed some order of operations.

Used to be: once window controller -close was called, everything went dead, and you could tear down table views, controllers, delegates, data sources in pretty much any order you wanted.

The new way: the frigging thing will try to redraw itself after -close, actually after invoking willClose on its window controller, and you have to tear things down in a very specific order.

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice






_______________________________________________

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


References: 
 >Odd Crash (From: Peter Hudson <email@hidden>)
 >Re: Odd Crash (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Odd Crash
  • Next by Date: Re: Odd Crash
  • Previous by thread: Re: Odd Crash
  • Next by thread: Re: Generics Question
  • Index(es):
    • Date
    • Thread