Top "Nsdictionary" questions

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

nsdictionary copy vs mutable copy

I have NSMutableDictionary *myDictionary = [[NSMutableDictionary alloc] init]; id dict = [myDictionary copy]; but is dict now just a regular NSDictionary? Or …

cocoa copy nsdictionary nsmutabledictionary
Store selector as value in an NSDictionary

Is there a way to store a selector in an NSDictionary, without storing it as an NSString?

cocoa cocoa-touch nsdictionary selector
Why is NSUserDefaults unwilling to save my NSDictionary?

I'm using KVC to serialize an NSObject and attempt to save it to NSUserDefaults, which is giving me an Attempt …

iphone objective-c nsdictionary nsuserdefaults kvc
Weak object in an NSDictionary?

I would like to store a zeroing weak reference to an object in a NSDictionary. This is for a reference …

ios nsdictionary automatic-ref-counting weak-references
Best way to save to nsuserdefaults for custom class?

If I have a custom class Person which has three variables (which are propertized and synthesized): NSString* theName; float* theHeight; …

iphone objective-c nsarray nsdictionary nsuserdefaults
NSFileManager & NSFilePosixPermissions

I want to use the octal permissions (used for chmod) for NSFilePosixPermissions. Here is what I did now: NSFileManager *manager = […

xcode permissions nsdictionary nsfilemanager chmod
Instantiating Custom Class from NSDictionary

I have a feeling that this is stupid question, but I'll ask anyway... I have a collection of NSDictionary objects …

iphone objective-c collections nsdictionary
Parsing JSON dictionary / array

If a JSON web service returns something like this (details of houses) [ { id:4, price: 471, location: "New York", size: 3000 }, { id:7, price: 432, …

iphone json ios nsdictionary asihttprequest
Replacing key/value in NSDictionary

If I have a dictionary with the following key/value "foo"/"bar" and declared [dictionary setObject:@"baz" forKey:@"foo"]; would …

objective-c nsdictionary key-value
-[NSCFDictionary length]: unrecognized selector

I have the next problem with this code: NSDictionary * imagen = [[NSDictionary alloc] initWithDictionary:[envio resultValue]]; NSString *imagenS = [imagen valueForKey:@"/Result"]; […

iphone objective-c nsdictionary unrecognized-selector