[futurebasic] Re: [FB] Where shall I stick my CFArrayRef

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2006 : Group Archive : Group : All Groups

From: Bernie <fb.list@...>
Date: Tue, 28 Feb 2006 06:25:31 +0000
Ken wrote:

> The array retains its contents (if you create the array with  
> kCFTypeArrayCallBacks), and will release its contents when the  
> array itself is released, so you don't need to separately release  
> the contents. Otherwise you first have to iterate through the array  
> to release each individual element, and before releasing the array  
> object itself.


Ken,

My test app, didn't show any leaks when disposing of the array so I  
assumed the above was not true in my case. However, after fixing my  
'dodgy' test app, it does now show a whopping great leak. I've read  
through all the links you gave me (thanks) but I can't find a value  
for kCFTypeArrayCallBacks.

I really am hopeless with callbacks and all that stuff so any info  
appreciated.

TIA
Bernie