• 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: NSOutlineView: expanding an item retains it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView: expanding an item retains it?


  • Subject: Re: NSOutlineView: expanding an item retains it?
  • From: j o a r <email@hidden>
  • Date: Sun, 23 Jan 2005 03:08:19 +0100


On 2005-01-23, at 01.38, Steve Mykytyn wrote:

Seeing some objects that "belong" to an NSDocument receive a dealloc message AFTER the NSDocument has completed its dealloc is a little worrisome. It's not impacting me directly at the moment, but if I had done a few things differently it MIGHT.

I'm fairly sure that you use a NSWindowController too, right? I think that the window controller per default is autoreleased in response to the windowWillClose delegate method. This might be the reason why it's released at the end of the run loop instead of right away.


It also makes a quick check of your retain counts a little confusing unless you realize this is happening ;-)

I think that it's little point in general to try to make sense of the retain count of an object at some point during execution, it will go up and down as the object is passed around. Like I said, worry mostly about balancing retain / release - and mostly about your own code.
Even when I'm explicitly out to locate a memory leak it's very rare that I would try to log retain / release for an object to do so - there are better ways.


j o a r

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSOutlineView: expanding an item retains it? (From: Steve Mykytyn <email@hidden>)
 >Re: NSOutlineView: expanding an item retains it? (From: Clark Cox <email@hidden>)
 >Re: NSOutlineView: expanding an item retains it? (From: Steve Mykytyn <email@hidden>)

  • Prev by Date: Re: [OT] Plist editor?
  • Next by Date: Re: storing numbers
  • Previous by thread: Re: NSOutlineView: expanding an item retains it?
  • Next by thread: Re: NSOutlineView: expanding an item retains it?
  • Index(es):
    • Date
    • Thread