I need to determine if the key of a new key value pair is unique before adding it to a NSMutableDictionary. How can I do this with case insensitivity? For example a new key called "my key" should not be validated if "My Key","MY KEY", or "my key", etc. exists in the dictionary.
I have tried ([myDictionary objectForKey:@"my key"] == nil) as well as ([[myDictionary allKeys] containsObject:@"my key"]) both of which are case sensitive.
Thanks,
John
Here's what I would do since NSDictionary doesn't support case-insensitive key lookups.