Core Data Confusion
Shawn Erickson
shawnce at gmail.com
Mon Feb 5 09:19:28 PST 2007
On 2/5/07, Marcus S. Zarra <mzarra at mac.com> wrote:
> The KVO methods do not fire faults in Core Data. Core Data retrieves
> all of the values for a managed object when that object is accessed.
> It specifically does not do any lazy initialization of attributes.
> However, it does do lazy initialization of relationships.
I should also note that your are making assumption about how Core Data
will operate... it could change its faulting behavior in the future
(it could lazily load some subset of attributes). Using the correct
will/did Access/Change methods when dealing with primitive values will
protect you from changes in the implementation.
The API and documentation do not preclude that Apple could extend Core
Data in such ways... (in fact the documentation recommendations and
API actually support that type of enhancement)
-Shawn
More information about the MacOSX-dev
mailing list