valueForUndefinedKey confusion

2010-02-15 Thread James Maxwell
Hello All, I have an NSMutableDictionary I'm trying to read from, but it's giving me valueForUndefinedKey errors. I can NSLog the key successfully, so I'm very confused as to what's going on. NSLog(@Total number of components in work: %i, [AllComponents count]); for(NSString* cKey in

Re: valueForUndefinedKey confusion

2010-02-15 Thread Graham Cox
On 16/02/2010, at 8:56 AM, James Maxwell wrote: I have an NSMutableDictionary I'm trying to read from, but it's giving me valueForUndefinedKey errors. I can NSLog the key successfully, so I'm very confused as to what's going on. NSLog(@Total number of components in work: %i,

Re: valueForUndefinedKey confusion

2010-02-15 Thread James Maxwell
Ha - that did it! As expected, you are a rock star, Graham. (and no, the following methods don't muck with the dictionary - it's obviously some subtlety in KVC... There is an underscore in the key string, so that probably borked it.) cheers, J. On 2010-02-15, at 2:09 PM,