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

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

From: Ken Shmidheiser <kshmidheiser@...>
Date: Mon, 27 Feb 2006 09:34:45 -0500
In this thread Robert P. wrote:

>I disagree. Just quit. All memory allocated to a process (whether by 
>NewHandle, NewPtr, malloc or the CF allocators) is released safely, 
>quickly and automatically. Moreover, you don't have to write any 
>extra code. That's what I call "graceful".

I stand corrected.


and Bernie added:

>I may be wrong, but I don't think I need CFRetain or anything. 
>Sticking the array ref into a global (gArray) works just fine, it's 
>just that I don't wanna use globals. Also, storing the ref as a 
>property of a menu item also works but I wondered if that was not 
>recommended for some reason.

I hope that works well for you.

Ken