• 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: [Leopard] Debugging GC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Leopard] Debugging GC


  • Subject: Re: [Leopard] Debugging GC
  • From: Alastair Houghton <email@hidden>
  • Date: Tue, 30 Oct 2007 12:12:53 +0000

On 30 Oct 2007, at 00:33, mmalc crawford wrote:

On Oct 29, 2007, at 5:10 PM, Chris Hanson wrote:

So what is the correct idiom now?

The correct idiom is now (following my own style, sorry):

- (id)somethingFromCarbon {
  CFFooReference foo = CFCopyFooWithBar(5);

  return [NSMakeCollectable(foo) autorelease];
}

Since a couple of people have said the same thing now, I think it may be worth pointing out that they're looking at this from the perspective of a framework developer who has to write mixed-mode code (code that has to support both managed memory and garbage collected environments).

Also, if I understand Bill's posts on xcode-dev correctly, mixed-mode code won't run on Tiger because the compiler will generate calls to functions that don't exist there.


Presumably that means that a dual-mode framework will need a separate Tiger version (assuming Tiger compatibility is a requirement, which it commonly will be at the moment).

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

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


  • Follow-Ups:
    • Re: [Leopard] Debugging GC
      • From: Bill Bumgarner <email@hidden>
References: 
 >[Leopard] Debugging GC (From: Pierre Bernard <email@hidden>)
 >Re: [Leopard] Debugging GC (From: Bill Bumgarner <email@hidden>)
 >Re: [Leopard] Debugging GC (From: John Stiles <email@hidden>)
 >Re: [Leopard] Debugging GC (From: mmalc crawford <email@hidden>)
 >Re: [Leopard] Debugging GC (From: John Stiles <email@hidden>)
 >Re: [Leopard] Debugging GC (From: mmalc crawford <email@hidden>)
 >Re: [Leopard] Debugging GC (From: glenn andreas <email@hidden>)
 >Re: [Leopard] Debugging GC (From: Chris Hanson <email@hidden>)
 >Re: [Leopard] Debugging GC (From: mmalc crawford <email@hidden>)

  • Prev by Date: FSCatalogInfo randomness
  • Next by Date: [ANN] Using PyObjC on Leopard
  • Previous by thread: Re: [Leopard] Debugging GC
  • Next by thread: Re: [Leopard] Debugging GC
  • Index(es):
    • Date
    • Thread