How do I add more then one object for the same key? is that possible?
For example, I need to have a dictionary like this:
object:textField.text for key @"Permanent key"
I need to always add objects to that permanent key depending on how many times the user types something on the textfield.
So my dictionary would have lots of entries for the key “permanent key”.
This is not possible, keys have to be unique for each value in the dictionary.
If what you need is several objects like this, why not just make an NSMutableArray or NSMutableSet of them? Or have your object be itself an NSMutableArray and you assign it to that key and simply add to this NSMutableArray the new values that are required.