Skip navigation.
 
mlRe: Understanding reference count ownership
FROM : j o a r
DATE : Thu May 08 17:30:54 2008

On May 8, 2008, at 8:16 AM, Christiaan Hofman wrote:

> Sure, but that's not what I'm saying. I don't disagree that I was 
> wrong and too quick to answer. I'm just explaining what led me to 
> this confusion. Also this very sentence is a case in point: here and 
> at several p[laces in these docs the word "create" is used to 
> describe making an object that you own. So it's at least counter-
> intuitive to use the word "new" to indicate it in a method name.



It might possibly be a bit confusing that "create" is a memory 
management keyword in CoreFoundation, but the documentation should 
never be mixed up on that topic.


> E.g. initWithObjects:copyItems:. I couldn't find it in the ownership 
> management docs, nor in the description of the method itself. In 
> fact, that description might make you believe that the objects from 
> the array are copied, and therefore should be released by you!



Whenever you find specific places where the existing documentation is 
incorrect, or where additional documentation is required, please file 
bug reports / enhancement requests:

   <http://developer.apple.com/bugreporter/>

j o a r

Related mailsAuthorDate
mlUnderstanding reference count ownership Gregory Seidman May 7, 23:32
mlRe: Understanding reference count ownership Christiaan Hofman May 7, 23:47
mlRe: Understanding reference count ownership j o a r May 7, 23:47
mlRe: Understanding reference count ownership Jim Correia May 7, 23:49
mlRe: Understanding reference count ownership mmalc Crawford May 8, 01:34
mlRe: Understanding reference count ownership Paul Sargent May 8, 15:16
mlRe: Understanding reference count ownership Christiaan Hofman May 8, 15:32
mlRe: Understanding reference count ownership mmalc Crawford May 8, 16:55
mlRe: Understanding reference count ownership Christiaan Hofman May 8, 17:16
mlRe: Understanding reference count ownership j o a r May 8, 17:30
mlRe: Understanding reference count ownership Sherm Pendley May 8, 17:50
mlRe: Understanding reference count ownership Christiaan Hofman May 8, 18:09
mlRe: Understanding reference count ownership Sherm Pendley May 8, 18:28
mlRe: Understanding reference count ownership Christiaan Hofman May 8, 18:48
mlRe: Understanding reference count ownership Sherm Pendley May 8, 19:16
mlRe: Understanding reference count ownership Christiaan Hofman May 10, 17:20
mlRe: Understanding reference count ownership Sherm Pendley May 10, 19:58
mlRe: Understanding reference count ownership Clark Cox May 10, 20:36