Code:
NSLog(@"%@", book);
NSLog(@"%@", [completeBooksDictionary objectForKey:book]);
[selectedBooksDictionary setObject:[completeBooksDictionary objectForKey:book] forKey:book];
So the first two line demonstrate that those messages do in fact return objects (the first a string constant and the second a dictionary).
Why is that when I use the third line to add the key-value pair it doesn't work?
If I add the entry then use
Code:
NSLog(@"%@", selectedBooksDictionary);
I get Null