On 1 Jul 2011, at 12:59, Gregory Weston wrote: > Dave DeLong wrote: > >> You can just do: >> >> NSArray *objectsArray = [theArray valueForKey:key]; >> >> And it'll do pretty much the same thing (except that it'll call >> -valueForKey: on each item in the array, and not objectForKey:. However, if >> the objects are NSDictionaries, that's pretty much the same thing). > > Pretty much. But just this week I ran across a situation where sending > objectForKey: worked while valueForKey: said the dictionary wasn't > KVC-compliant for the specified key.
I believe this would be when the key begins with an @ symbol. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com