Can I change an NSDictionaries key?

Posted by Mark Reid on Stack Overflow See other posts from Stack Overflow or by Mark Reid
Published on 2010-05-09T10:21:02Z Indexed on 2010/05/09 10:28 UTC
Read the original article Hit count: 161

Filed under:
|

I have an NSDictionary object that is populated by NSMutableStrings for its keys and objects. I have been able to change the key by changing the original NSMutableString with the setString: method. They key however remains the same regardless of the contents of the string used to set the key initially.

My question is, is the key protected from being changed meaning it will always be the same unless I remove it and add another to the dictionary?

Thanks.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about foundation