On 3/10/09 3:46 PM, Bill Bumgarner said: >Also -- look through the -dealloc methods in the framework. You'll >want to create a -finalize for any that do anything beyond -release of >objects/[super dealloc] (Though you don't need to unregister >notification observers). > >- free()s & CFRelease()s can be copied directly to -finalize
Bill, This reminds me.... Do you know if one can safely call IOObjectRelease() in finalize? The docs do not say if that function is thread-safe. <rdar://problem/6307385>. I have a real life situation where IOObjectRelease() is called in dealloc, but in GC I'm erring on the side of caution and leaking. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ 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