Skip navigation.
 
mlRe: Using Garbage Collection (Cross Language)
FROM : Charles Steinman
DATE : Wed Feb 20 22:33:44 2008

--- Tommy Nordgren <tommy.<email_removed>> wrote:

> How can I be sure that references to Objective C
> classes are not 
> collected prematurely in
> cross language development?
>
> typedef struct listelem {
>     struct listelem * next;
>     id data;
> };
>
> class MyClass {
>     id somedata;
> public:
>     MyClass(id dat): somedata(dat) {};
>
> };
>
> etc ...


CFRetain and CFRelease. CFRetain works like -retain
under reference counting, and it effectively makes the
object a root under GC.

Cheers,
Chuck


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page.
http://www.yahoo.com/r/hs

Related mailsAuthorDate
mlUsing Garbage Collection (Cross Language) Tommy Nordgren Feb 20, 22:07
mlRe: Using Garbage Collection (Cross Language) Charles Steinman Feb 20, 22:33