• 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: Mon, 24 Jan 2005 11:44:42 +0100


On 2005-01-24, at 10.39, Steven Kramer wrote:

By asking the data source for the items? To me retaining implies ownership - and I don't think that an outline view should be considered the owner of the tree of objects that it represents. I haven't given this a whole lot of thought, so I could be wrong.

But wouldn't that have the corollary that the retain count for any given object would only ever be 1? Just checking if either one of us is confused on this ;-)

Not at all.

* I was only talking about NSOutlineView vs. the items that it's data source provides. Don't try to make a broad generalization out of it.

* In this thread I've tried to point out (two times) that you shouldn't care what the retain count really is - you should concern yourself with balancing retain / release as is appropriate.

Finally: Yes, I would in general assume that most objects has an average effective retain count of 1 during their lifetime. This is of course not at all the same thing as saying that they "would (or should) only ever be 1".

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: j o a r <email@hidden>)
 >Re: NSOutlineView: expanding an item retains it? (From: daniel <email@hidden>)
 >Re: NSOutlineView: expanding an item retains it? (From: Steven Kramer <email@hidden>)

  • Prev by Date: Re: NSOutlineView: expanding an item retains it?
  • Next by Date: Re: Problem reloading data for NSOutlineViewDataSource without memory leak
  • Previous by thread: Re: NSOutlineView: expanding an item retains it?
  • Next by thread: Changing whether or not a window is resizable
  • Index(es):
    • Date
    • Thread