Re: Value Transformer Name

2009-04-10 Thread Quincey Morris
On Apr 10, 2009, at 11:27, Richard Somers wrote: On Apr 10, 2009, at 11:54AM, Quincey Morris wrote: Core Data runs a custom transformer in the forward direction, but it runs the default transformer in the reverse direction. The documentation states "Core Data uses an instance of NSValueTr

Re: Value Transformer Name

2009-04-10 Thread Richard Somers
On Apr 10, 2009, at 11:54AM, Quincey Morris wrote: Core Data runs a custom transformer in the forward direction, but it runs the default transformer in the reverse direction. The documentation states "Core Data uses an instance of NSValueTransformer to convert the attribute to and from an i

Re: Value Transformer Name

2009-04-10 Thread Quincey Morris
On Apr 10, 2009, at 09:57, Richard Somers wrote: 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. Er,

Re: Value Transformer Name

2009-04-10 Thread Richard Somers
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

Re: Value Transformer Name

2009-04-10 Thread Quincey Morris
On Apr 10, 2009, at 08:07, Keary Suska wrote: I would file a bug against the documentation for clarification. I would hazard the guess that Core Data handles transformations differently when you specify a transformer name and when you don't. Hence the different errors. That's exactly righ

Re: Value Transformer Name

2009-04-10 Thread Richard Somers
On Apr 10, 2009, at 9:07AM, Keary Suska wrote: Who cares otherwise? I am just a poor ignorant programmer trying to come to grips with non- standard persistent attributes (C Structs) in Core Data. The lack of a sample code application which illustrates this makes life even more difficult.

Re: Value Transformer Name

2009-04-10 Thread Keary Suska
On Apr 10, 2009, at 8:15 AM, Richard Somers wrote: In an Xcode data model window, a transformable attribute has an input labeled "Value Transformer Name:". The Core Data Programming Guide says "By default, Core Data uses the NSKeyedUnarchiveFromDataTransformerName transform

Value Transformer Name

2009-04-10 Thread Richard Somers
In an Xcode data model window, a transformable attribute has an input labeled "Value Transformer Name:". The Core Data Programming Guide says "By default, Core Data uses the NSKeyedUnarchiveFromDataTransformerName transformer, however you can specify your own transformer if