On Apr 10, 2009, at 10:41AM, Quincey Morris wrote:

However, the NSKeyedUnarchiveFromDataTransformerName transformer transforms an instance of NSData to an instance of whatever was archived in it.

So, the default transformer goes *from* NSData. Custom transformers go *to* NSData.

So, you cannot specify the default transformer explicitly, because that would make Core Data use it in the wrong direction.

The documentation indicates NSKeyedUnarchiveFromDataTransformerName supports reverse transformation. Single class with bidirectional transformation. Use –transformedValue: to go one way and – reverseTransformedValue: to go the other way.

Richard

_______________________________________________

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 arch...@mail-archive.com

Reply via email to