• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using Garbage Collection (Cross Language)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Using Garbage Collection (Cross Language) (From: Tommy Nordgren <email@hidden>)

  • Prev by Date: Re: MPTask equivalent?
  • Next by Date: how to access iChat video frames
  • Previous by thread: Using Garbage Collection (Cross Language)
  • Next by thread: how to access iChat video frames
  • Index(es):
    • Date
    • Thread