Re: ADC Core Data article
Re: ADC Core Data article
- Subject: Re: ADC Core Data article
- From: Marcel Weiher <email@hidden>
- Date: Thu, 7 Apr 2005 10:59:11 +0100
On 7 Apr 2005, at 05:59, Scott Stevenson wrote:
On Apr 6, 2005, at 3:25 PM, Timothy Reaves wrote:
KVC isn't very pretty, nor easy to use.
Eh?
-valueForKey
-setValue:forKey
Doesn't get much easier than that. :)
Sure does!
result = [employee valueForKey:@"name"];
vs.
result = [employee name];
The second is:
1. Expressed directly in the target language (Occam's Razor, anyone?)
2. More compact
3. Easier to read
4. About an order of magnitude faster ( about 8 times, to be a bit
more precise )
An order of magnitude here, an order of magnitude there, and soon
enough you're talking about real performance pigs...
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
The simplicity of power HOM, IDEAs, MetaAd etc.
1d480c25f397c4786386135f8e8938e4
_______________________________________________
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