• 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: 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


  • Follow-Ups:
    • Re: ADC Core Data article
      • From: mmalcolm crawford <email@hidden>
    • Re: ADC Core Data article
      • From: Evan DiBiase <email@hidden>
References: 
 >Re: ADC Core Data article (From: Philippe Mougin <email@hidden>)
 >Re: ADC Core Data article (From: Shawn Erickson <email@hidden>)
 >Re: ADC Core Data article (From: Charlton Wilbur <email@hidden>)

  • Prev by Date: Re: ADC Core Data article
  • Next by Date: Sorting NSStrings in NSTableColumn (need 10 after 9)
  • Previous by thread: Re: ADC Core Data article
  • Next by thread: Re: ADC Core Data article
  • Index(es):
    • Date
    • Thread