Top "Nsmutabledictionary" questions

NSMutableDictionary is the mutable version of NSDictionary.

How to insert a new key with value in dictionary

I want to insert a key with a corresponding value in an existing dictionary... I am able to set values …

iphone key nsmutabledictionary
Sort an NSMutableDictionary

I have an NSMutableDictionary that maps NSString to NSString (although the values are NSStrings, they are really just integers). For …

ios dictionary nsmutabledictionary
How to create an NSDictionary in Objective-C?

I want to create an NSDictionary like this type: "zones": { { "zoneId": "1", "locations": { { "locId": "1", "locZoneId": "1", "locLatitude": "33.68506785633641", "locLongitude": "72.97488212585449" }, { "locId": “2”, "locZoneId": "1", "locLatitude": "33.68506785633641", "locLongitude": "72.97488212585449" }, { "…

ios objective-c nsdictionary nsmutabledictionary
How can I convert an NSDictionary to an NSMutableDictionary?

I have an existing NSDictionary that has: { "charts_count" = 2; "created_at" = "2010-04-12T16:37:32Z"; exchange = NASDAQ; "followers_count" = 259; id = 8404; …

iphone objective-c cocoa-touch nsdictionary nsmutabledictionary
How to get the key for a given object from an NSMutableDictionary?

I have an object which is in an big NSMutableDictionary, and need to find out which key this has. So …

iphone nsmutabledictionary
NSDictionary setValue:

OK, this is driving me nuts -- please tell me I'm not losing my mind! I declare: NSMutableDictionary* generalSettingsDict; im …

objective-c debugging key-value-observing nsmutabledictionary key-value-coding
Convert NSDictionary to Swift Dictionary

Now I know that when swift compiles it just makes a NSDictionary, but the NSDictionary and Swift dictionaries have different …

dictionary swift nsdictionary nsmutabledictionary
How to clear a dictionary?

I'm currently doing the following to clear out an NSMutableDictionary [myDictionary release]; myDictionary = [[NSMutableDictionary alloc] init]; The release line doesn't …

iphone objective-c cocoa-touch nsmutabledictionary
NSMutableDictionary thread safety

I have a question on thread safety while using NSMutableDictionary. The main thread is reading data from NSMutableDictionary where: key …

objective-c nsmutabledictionary
How to update NSMutableDictionary?

I have an NSMutableDictionary. NSMutableDictionary* plistDict = [[NSMutableDictionary alloc] initWithContentsOfFile:path]; I have to update an element in that dictionary. How …

iphone objective-c nsdictionary nsmutabledictionary