Re: Help with NSPointerArray and NSMapTable

Nat! <nat-wUJ93/3i6JkvAvrZIujWRVaTQe2KTcn/@public.gmane.org>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
>
> And shouldn't I also use NSPointerFunctionsCopyIn? It is not really  
> clear to me what's the relation between that option and  
> NSPointerFunctionsMallocMemory.
>

Yes. Conventionally in a NSMapTable you copy the key (assumed to be  
smallish) and you just hand over the value (assumed to biggish). In an  
NSPointerArray of NSRects you will most likely want to make it a copy,  
so NSPointerFunctionsCopyIn is needed too.

Ciao
    Nat!
------------------------------------------------------
i hurt when i think too much i love roadtrips i hate
my weight i fear being alone for the rest of my life.
   -- AOL #3696023
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.