Is it ok to cast a NSdictionary object to NSMutableDictionary?
NSDictionary *dict;
NSMutableDictionary *mDict = (NSMutableDictionary *)dict;
Tried this and it worked fine.
Is it ok to cast a NSdictionary object to NSMutableDictionary?
NSDictionary *dict;
NSMutableDictionary *mDict = (NSMutableDictionary *)dict;
Tried this and it worked fine.
No it is not. If you want a mutable dictionary, make one:
NSMutableDictionary* mutableDict = [dict mutableCopy];
Do not forget in accordance with the rules you own mutableDict
and must release it when you are done with it.