• 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: アンドレ(Andre) <email@hidden>
  • Date: Wed, 6 Apr 2005 00:55:18 -0700

I think there are two reasons that they use a specific base-class.

1。Being that they wanna prevent you from core-data-izing a view object; short circuiting M-V-C.
2。By makeing a specific base-class that conforms to a specific spec, one very important feature is gained IMO: predictability.
        If any object could be stuffed in the persistent store (even with a protocol), then we might end up with all kinds of weird proprietary formats, but
        letting coredata take care of all that, it allows the format to be seamless, only requiring schema to instantiate other saved files
        perfectly. Anyways, out of that predictability then comes stability. I would rather have a framework that did something
        extremely well and 99.99% perfectly than one that had to account for all kinds of customizations and become a "use at your own risk". 
        With core-data they can extrapolate the object-graph into whatever file type/database they see fit, and maintain interoperability; what happens
        if say one day apple added the compound document format, or something else, its all automatic we don't need to do anything. 
        Its also possible that the interaction between it and the ObjectContext is very complex, so throwing your own class may be just throwing a wrench.        

        I'm probably not communicating perfectly what I wanna say, but.... JMO.

On 平成 17/04/05, at 23:22, Paul Szego wrote:

Many other frameworks face the same problem - and there's usually two approaches. The first, and most restrictive, is to force you to extend a specific base class with a bunch of behaviour built in. Another is to define the responsibilities of a class that wants to "play ball" (e.g. in Java via an interface, in ObjC via a protocol) and let it decide how to best achieve those. The latter approach doesn't preclude providing a base or mixin class. 


 _______________________________________________
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

References: 
 >Re: ADC Core Data article (From: Will Mason <email@hidden>)
 >Re: ADC Core Data article (From: Paul Szego <email@hidden>)

  • Prev by Date: Re: ADC Core Data article
  • Next by Date: Re: WWDC 2005 - Is the value worth the price? (OT)
  • Previous by thread: Re: ADC Core Data article
  • Next by thread: Re: ADC Core Data article
  • Index(es):
    • Date
    • Thread