On Jun 27, 2009, at 8:38 PM, Michael Ash wrote:
(And I only say "almost" because I can only assume there's a corner case out there somewhere with CoreFoundation-using code, since CF objects are also garbage collected, but I am not actually aware of any.)
When a CF object is created, it is CFRetain()ed and, thus, the collector will ignore it. If it is then managed entirely through a balanced set of CFRelease() and CFRetain() calls, it'll work just like it does under non-GC.
If you call CFMakeCollectable(), that'll effectively balance the CFRetain() at creation while making the collector aware of the object.
Thus, no real edge case here (as designed). b.bum _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com