Re: does transformedValueClass matter?
Re: does transformedValueClass matter?
- Subject: Re: does transformedValueClass matter?
- From: Scott Anguish <email@hidden>
- Date: Fri, 3 Mar 2006 00:30:17 -0500
On Mar 2, 2006, at 11:29 PM, Matt Neuburg wrote:
Like Tom Harrington in this thread...
<http://www.cocoabuilder.com/archive/message/cocoa/2005/11/23/150949>
...I find the documentation on NSValueTransformer's
+transformedValueClass
bizarre. We are declaring a class, but what class? It is perfectly
legal for
a reversible transformation to transform a class A object into a
class B
object and (reversing) a class B object into a class A object, so
which
should I return from transformedValueClass - A or B?
there is a bug in the current doc (which has been fixed already)
that says that the transformedValueClass is used in both the
'forward' and reverse transformations.. it is actually only used in
the 'forward' one.
Even more, what does it matter? My experiments show that I can return
anything I like from transformedValueClass and my transformer works
just
fine. So what's the point of this method? Does it really do anything?
it is useful information to the runtime.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden