• 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: Question about NSTreeController/NSOutlineView instance cleanup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about NSTreeController/NSOutlineView instance cleanup


  • Subject: Re: Question about NSTreeController/NSOutlineView instance cleanup
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 10 Apr 2008 20:48:58 -0700


On Apr 10, 2008, at 19:46, Markus Spoettl wrote:

I thought I don't have to retain treeContent since I automatically do that with alloc-init, right?

That's right.

Perhaps the controller is not getting released when it should. Do you have an instance variable for the controller too? If so, how is that retained/released? You could probably avoid the error by sending a "setContent:nil" message to the controller in the document's dealloc, but that would just be papering over the problem.

Or perhaps the objects in treeContent are all getting overreleased. That could cause the error messages you're seeing.


_______________________________________________

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: Question about NSTreeController/NSOutlineView instance cleanup
      • From: Markus Spoettl <email@hidden>
References: 
 >Question about NSTreeController/NSOutlineView instance cleanup (From: Markus Spoettl <email@hidden>)
 >Re: Question about NSTreeController/NSOutlineView instance cleanup (From: Markus Spoettl <email@hidden>)
 >Re: Question about NSTreeController/NSOutlineView instance cleanup (From: Quincey Morris <email@hidden>)
 >Re: Question about NSTreeController/NSOutlineView instance cleanup (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: Override AppleScrollBarVariant on NSScroller?
  • Next by Date: Re: Highlight color of a NSTableView row
  • Previous by thread: Re: Question about NSTreeController/NSOutlineView instance cleanup
  • Next by thread: Re: Question about NSTreeController/NSOutlineView instance cleanup
  • Index(es):
    • Date
    • Thread