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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to