On Mar 28, 2009, at 3:25 AM, an0...@gmail.com wrote:

I can not find any data structure in Cocoa that maintains sorting order of items gradually added in, using the pairwise comparison results, something like the canonical set in C++'s STL that is usually implemented as a balanced tree.

Cocoa doesn't have what you're looking for built in.

You can use the C++ STL, but it doesn't do the right thing with respect to memory management. You can overcome that with some wrappers.

You can use the Core Foundation CFBinaryHeap API. It's closer in spirit to Cocoa, and you can make that do the right thing with respect to memory management quite easily.

Regards,
Ken

_______________________________________________

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

Reply via email to