Re: Needed : set class for Cocoa
Re: Needed : set class for Cocoa
- Subject: Re: Needed : set class for Cocoa
- From: "Sean McBride" <email@hidden>
- Date: Thu, 5 Feb 2009 20:50:39 -0500
Tommy Nordgren (email@hidden) 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, be
careful. I don't think an std::set will keep strong references to the
Obj-C objects it contains. You may need to CFRetain()/CFRelease() your
objects manually.
Sean
_______________________________________________
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