Re: RS: What's the difference?
Re: RS: What's the difference?
- Subject: Re: RS: What's the difference?
- From: Shawn Erickson <email@hidden>
- Date: Mon, 28 May 2007 07:42:08 -0700
On May 28, 2007, at 7:04 AM, Roland Silver wrote:
What's the difference between the two NSDictionary methods
valueForKey and objectForKey?
-[NSDictionary objectForKey:] is the primary way to fetch an object
from an NSDictionary.
-[NSDictionary valueForKey:] implements KVC support for dictionaries
(part of the NSKeyValueCoding informal protocol).
The docs outline the difference between the two (see the discussion
section of valueForKey:). In general you would use objectForKey:.
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden