Re: Using Garbage Collection (Cross Language)
Re: Using Garbage Collection (Cross Language)
- Subject: Re: Using Garbage Collection (Cross Language)
- From: Charles Steinman <email@hidden>
- Date: Wed, 20 Feb 2008 13:33:44 -0800 (PST)
--- Tommy Nordgren <email@hidden> 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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden