Re: container retain/release problem
Re: container retain/release problem
- Subject: Re: container retain/release problem
- From: Paul Forgey <email@hidden>
- Date: Thu, 10 Feb 2005 14:54:17 -0800
Crap.. I overloaded [release], not [dealloc] in the class containing
the array in question, with obvious results now that I see what I did.
I do know better, but obviously I haven't been writing Cocoa code long
enough to catch stupid things like this or not accidentally do them in
the first place :).
Sorry about that. But it is good to know the release/retain mechanism
works in containers the way I'd expect it to.
On Feb 10, 2005, at 2:36 PM, email@hidden wrote:
If you have -retain'd the array that is contained within the
dictionary then, yes, that array will continue to exist after the
dictionary has been deallocated (-release'd completely -- never invoke
-dealloc directly). If it isn't, then you are either over
-release'ing it or you never -retain'd it in the first place.
_______________________________________________
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