Since iOS6 onwards, a convenient method for setting and accessing the object for a key from an NSDictionary is:
//Setting the object in NSMutableDictionary
dictionary[@"someKey"] = @"someString";
//Accessing the object
NSString *str = dictionary[@"someKey"];