discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question on NSPointerArray +pointerArrayWithWeakObjects


From: Philippe Roussel
Subject: Question on NSPointerArray +pointerArrayWithWeakObjects
Date: Fri, 04 Feb 2011 22:23:02 +0100

I've been browsing the Apple documentation for a long time but can't
find the answer so here's the question : is a NSPointerArray created
with pointerArrayWithWeakObjects supposed to retain the objects you add
to it ? 

In GNUstep +pointerArrayWithWeakObjects calls the init function with
NSPointerFunctionsZeroingWeakMemory which translate to retain but no
release. Shouldn't it be NSPointerFunctionsZeroingWeakMemory |
NSPointerFunctionsOpaquePersonality ?

Philippe





reply via email to

[Prev in Thread] Current Thread [Next in Thread]