I\'m starting objective-c development and I would like to ask the best way to implement a list of keys and values.
objective-c
In Delphi there is the class TDict
TDict
The other answers are correct, but there is more modern syntax for this now. Rather than:
[myDictionary setObject:nextValue forKey:myWord];
You can simply say:
myDictionary[myWord] = nextValue;
Similarly, to get a value, you can use myDictionary[key] to get the value (or nil).
myDictionary[key]