• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ADC Core Data article
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: ADC Core Data article
      • From: Charlton Wilbur <email@hidden>
References: 
 >ADC Core Data article (From: mmalcolm crawford <email@hidden>)
 >Re: ADC Core Data article (From: Philip Mötteli <email@hidden>)
 >Re: ADC Core Data article (From: "Timothy Reaves" <email@hidden>)
 >Re: ADC Core Data article (From: Scott Stevenson <email@hidden>)

  • Prev by Date: NSUndoManager retains objects
  • Next by Date: Re: NSCalendarDate, NSTimer - Daylight Saving Time (DST) problem is tricky...
  • Previous by thread: Re: ADC Core Data article
  • Next by thread: Re: ADC Core Data article
  • Index(es):
    • Date
    • Thread