Re: [Leopard] Debugging GC
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