Re: ADC Core Data article
Re: ADC Core Data article
- Subject: Re: ADC Core Data article
- From: Scott Ellsworth <email@hidden>
- Date: Fri, 8 Apr 2005 12:48:52 -0700
On Apr 8, 2005, at 9:34 AM, Charlton Wilbur wrote:
The last time we had a similar discussion on object-oriented
orthodoxy, I demonstrated fairly clearly that Objective-C messages
and key-value coding are isomorphic ways of communicating with an
object.
There is one very big and clear difference.
If foo has no "blob" accessor, then [foo blob] throws a warning at
compile time, while [foo valueForKey:@"blob"] does not, instead
erroring at runtime.
This is purely a tool problem - they could write something to check
valueForKey at runtime, but they have not done so, and thus there is
a real and practical difference.
I actually rather like KVC, but I would not be at all sad to get
compile time checking for it.
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden