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
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 mails | Author | Date |
|---|---|---|
| Tommy Nordgren | Feb 20, 22:07 | |
| Charles Steinman | Feb 20, 22:33 |






Cocoa mail archive

