• 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: Crash in datasource method when closing document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash in datasource method when closing document


  • Subject: Re: Crash in datasource method when closing document
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 10 Oct 2013 17:33:22 +1100

On 10 Oct 2013, at 5:10 PM, Jerry Krinock <email@hidden> wrote:

> Issues like this often crop up as soon as you try to make an app which his more complicated than Apple Sample Code :))

Yep. The curious thing is I've been working on this for some time, and it's only just cropped up. Now it might be that I never did a revert with one folder like this before, but it might be something else that's changed. My first instinct, though, is that it's at my end.
>
>> I'm using ARC.
>
> ARC doesn't help for KVO observers, notification observers, delegates, manual bindings, or data sources. These must still be managed manually.

Understood. I mention it to save someone asking, though.
>
> Here is some typical code "tear down" code.  This is for a tabbed window.  Note the outline view's delegate and data source being set to nil.
>
> * In window controller implementation
>
> - (void)windowWillClose:(NSNotification *)aNotification {

One of the first things I tried was putting a breakpoint on -windowWillClose: The thing is, it doesn't get that far -- the breakpoint is never hit. That's partly why I'm unsure of where to look next.

--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


_______________________________________________

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: Crash in datasource method when closing document
      • From: Jerry Krinock <email@hidden>
References: 
 >Crash in datasource method when closing document (From: Shane Stanley <email@hidden>)
 >Re: Crash in datasource method when closing document (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Crash in datasource method when closing document
  • Next by Date: Re: Crash in datasource method when closing document
  • Previous by thread: Re: Crash in datasource method when closing document
  • Next by thread: Re: Crash in datasource method when closing document
  • Index(es):
    • Date
    • Thread