does transformedValueClass matter?
does transformedValueClass matter?
- Subject: does transformedValueClass matter?
- From: Matt Neuburg <email@hidden>
- Date: Thu, 02 Mar 2006 20:29:03 -0800
- Thread-topic: does transformedValueClass matter?
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?
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?
m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide - Second Edition!
http://www.amazon.com/gp/product/0596102119
Take Control of Word 2004, Tiger, and more -
http://www.takecontrolbooks.com/tiger-customizing.html
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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