Re: Fastest Datastore?
Re: Fastest Datastore?
- Subject: Re: Fastest Datastore?
- From: mmalcolm crawford <email@hidden>
- Date: Sun, 5 Mar 2006 20:34:33 -0800
On Mar 5, 2006, at 8:17 PM, Greg Herlihy wrote:
On Mar 5, 2006, at 4:36 PM, Greg Herlihy wrote:
In fact there are two Core Data routines: -primitive<Key> and
setPrimitive<Key> that would be ideal places to intercept data to
and from the data store.
No, you should *not* override these methods:
I may be misreading the Core Data documentation, but the Core Data
Programming Guide seems to suggest that it is OK for an application to
override the primitive accessor routines:
Oh, heavens, my apologies. Somehow I completely misread your
original; I saw it as suggesting that you override
primitiveValueForKey and setPrimitiveValue:forKey:.
"...If for an attribute attributeName you implement
primitiveAttributeName
and setPrimitiveAttributeName:, then Core Data will use these
methods in
place of primitiveValueForKey:@"attributeName" and
setPrimitiveValueForKey:@"attributeName"."
Yes, that's in the first reference I gave:
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/
cdAccessorMethods.html#//apple_ref/doc/uid/TP40002154-SW5>
mmalc
_______________________________________________
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