HashTables in Cocoa?

And here's a simple example: NSMutableDictionary *dictionary = NSMutableDictionary alloc init; dictionary setObject:anObj forKey:@"foo"; dictionary objectForKey:@"foo"; dictionary removeObjectForKey:@"foo"; dictionary release.

Note that, in true object-oriented fashion, the Cocoa classes are named for "what they do" rather than "how they're implemented" as HashTable, HashMap, and friends are in Java, C#, and so on. – Chris Hanson Jan 24 '09 at 20:04 1 C# calls it a Dictionary as well! – bobobobo Dec 8 '09 at 4:51.

If you're using Leopard (and Cocoa's new Garbage Collection), you also want to take a look at NSMapTable.

Cool, I'll check that out ... thanks. – Ryan Delucchi Jan 24 '09 at 6:14.

In addition to NSDictionary, also check out NSSet for when you need a collection with no order and no duplicates.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions