Re: NSOutlineView: expanding an item retains it?
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