Top "Nsdictionary" questions

A member of Apple's Objective-C framework Cocoa.

Display each item in an NSDictionary

I am trying to display each item in NSDictionary. I have tried using a for loop but that didn't work.

objective-c iphone xcode nsdictionary
Plist Array to NSDictionary

I have a plist: <plist version="1.0"> <array> <dict> <key>name</key&…

objective-c nsarray plist nsdictionary
NSDictionary setValue:forKey: -- getting "this class is not key value coding-compliant for the key"

I have this simple loop in my program: for (Element *e in items) { NSDictionary *article = [[NSDictionary alloc] init]; NSLog([[e …

objective-c data-structures nsdictionary
iOS: Why can't I set nil to NSDictionary value?

This might be very basic question but I was wondering why can't I assign nil as NSDictionary value? I have …

iphone ios nsdictionary null
How to get the duration of an audio file in iOS?

NSDictionary* fileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:filename error:nil] From the file attribute keys, you can get the date, size, etc. …

ios file audio nsdictionary duration
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
Getting NSDictionary keys sorted by their respective values

I have an NSMutableDictionary with integer values, and I'd like to get an array of the keys, sorted ascending by …

objective-c cocoa-touch nsdictionary
Save NSDictionary to plist

I am using the code found in this post: Mulitple Arrays From Plist, with the same plist formatting. This works …

objective-c cocoa plist nsdictionary
About -(NSDictionary)dictionaryWithObjectsAndKeys: and

I got a really interesting question. Inside one of my classes I declared a very simple instance method -(NSDictionary)…

iphone nsdictionary foundation