Re: Core data transformer direction
Re: Core data transformer direction
- Subject: Re: Core data transformer direction
- From: Quincey Morris <email@hidden>
- Date: Thu, 3 Jul 2008 00:45:06 -0700
On Jul 2, 2008, at 23:37, mmalc crawford wrote:
It's not clear in what way the first paragraph "says that the
forward transformation is NSData->SomeClass" -- it states that the
transformer is used "to convert the attribute to and from an
instance of NSData" -- at worst it's ambiguous. The second
paragraph makes a definite statement that is unambiguous.
Yes, I ended up saying that apparently the documentation can be read
as literally correct, but it's a *little* bit more than ambiguous --
because it's also surprising, given the way it's worded, that there's
no "default" to-NSData transformer, just default behavior that happens
to use the from-NSData transformer NSKeyedUnarchiveFromData as an
implementation detail. Since '[attributeDescription
setValueTransformerName: NSKeyedUnarchiveFromDataTransformerName]'
won't work, why mention NSKeyedUnarchiveFromDataTransformerName at all?
But that's beside the point. I wasn't trying to beat up the
documentation, just asking for clarification/confirmation.
_______________________________________________
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