On Feb 5, 2009, at 5:50 PM, Sean McBride wrote:
Tommy Nordgren ([email protected]) on 2009-02-06 7:55 PM said:I have decided to do an implementation myself, as an objective c++ wrapper to std::set<id>. I want to use the class to aid in destruction of directed cyclical object graphs, in dual mode frameworks."Dual mode" as in both Retain-Release and Garbage Collection? If so, becareful. I don't think an std::set will keep strong references to theObj-C objects it contains. You may need to CFRetain()/CFRelease() yourobjects manually.
You could just use CFSetCreateMutable with NULL retain/hash callback functions and CFRetain/CFRelease ownership. The nice part is that it can then be cast to an NSMutableSet.
-- Adam
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [email protected]
