Re: setPrimitiveValue:forKey: question
Re: setPrimitiveValue:forKey: question
- Subject: Re: setPrimitiveValue:forKey: question
- From: Chris Hanson <email@hidden>
- Date: Wed, 2 Nov 2005 18:33:01 -0800
On Nov 2, 2005, at 6:11 PM, Reaves Timothy wrote:
Does this method retain value & key?
Why do you ask? That is, what are you really trying to accomplish
that you might find this knowledge useful?
Speaking generally about Cocoa, if object C passes object B to object
A, and A needs to keep track of B for whatever reason -- whether to
return it later, to make use of it internally, etc. -- A will retain
or copy B as appropriate. It should not be any concern of C that
this is taking place.
This is critical to understanding Cocoa's model of object ownership.
-- Chris
_______________________________________________
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