Sorting an NSDictionary?
Sorting an NSDictionary?
- Subject: Sorting an NSDictionary?
- From: Jeff Galyan <email@hidden>
- Date: Mon, 14 Jan 2002 20:19:55 -0700
Hi all,
I'm a little lost in the forest of documentation. I'm converting an
application from java to objc, and I have a java.util.HashMap subclass that
implements Comparable. What should I look at in Cocoa that is analogous in
terms of sorting? I already know that a HashMap is basically just a
dictionary, so that part is fine - but is there a protocol I should use to
mimic Comparable? Is there something in Foundation or Core Foundation?
Basically, I'm lazy and don't want to reimplement sort algorithms. :)
--Jeff