This is because you need objectForKey:
, not valueForKey:
. The valueForKey:
method is for key-value programming. Moreover, the call should be on the [nsMyList objectAtIndex:0]
, like this:
NSString *nsRet = [[nsMyList objectAtIndex:0] objectForKey:@"Key"]