--- Tommy Nordgren <tommy.nordgren...> 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