Re: primitiveValueForKey Memory Management
Re: primitiveValueForKey Memory Management
- Subject: Re: primitiveValueForKey Memory Management
- From: Ondra Cada <email@hidden>
- Date: Sun, 29 May 2005 15:42:42 +0200
Hi,
On 29.5.2005, at 15:22, email@hidden wrote:
It seems unlikely your current method would fail anyway if
NSOutlineView were retaining things properly... so I'm guessing
NSOutlineView is either buggy...
Sorry I am in hurry now and thus I do not know whether this is
relevant or not--have not time to check the complete thread.
Anyway, there is (or at least used to be in Panther, I haven't
checked in Tiger yet, nor how it works with bindings: might have been
changed mantime) a known but poorly (if at all) documented issue
(arguable whether to be clasified as a bug) with NSOutlineView: it
does not retain the item identifiers (the things you return from the
"outlineView:child:ofItem:" method). Therefore, if you generate your
item identifiers on the fly (instead of they being integral part of
the data, in which case, of course, it's all right), you can get into
trouble.
If this is indeed the culprit, you have to retain the identifiers
yourself before returning, and release them when the appropriate
outline items go poof. That is not completely straightforward, but
also not too difficult.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
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