Core data transformer direction
Core data transformer direction
- Subject: Core data transformer direction
- From: Quincey Morris <email@hidden>
- Date: Wed, 2 Jul 2008 22:15:33 -0700
The core data programming guide say this about transformable attributes:
... Core Data uses an instance of NSValueTransformer to convert the
attribute to and from an instance of NSData. Core Data then stores
the data instance to the persistent store. By default, Core Data
uses the NSKeyedUnarchiveFromDataTransformerName transformer,
however you can specify your own transformer if you want.
... If you specify a custom transformer, it must transform an
instance of the non-standard data type into an instance of NSData
and support reverse transformation.
The first paragraph (and the description of
NSKeyedUnarchiveFromDataTransformerName) says that the forward
transformation is NSData->SomeClass.
The second paragraph says that the forward transformation is SomeClass-
>NSData.
Anyone know which is the correct answer?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden