Trying to bind to reverseTransformedValue: in IB
Trying to bind to reverseTransformedValue: in IB
- Subject: Trying to bind to reverseTransformedValue: in IB
- From: Sam Stigler <email@hidden>
- Date: Sat, 26 Jan 2008 18:52:35 -0800
Hi,
I've created three separate but related value transformers (I'm
trying to build a binary-decimal-hexadecimal three-way converter); and
those are unit-testing fine; but now I'm trying to bind them to text
fields in my user interface.
The problem I'm running into is that although by far the most
straightforward way for me to set this up would be to bind to the
reverseTransformedValue: method of at least one of the transformers, I
have no idea how I would go about setting that up in IB. Is it
possible? I'm guessing that as is, if I bind a variable to a text
field in IB using a value transformer, the transformedValue: method
will be used. Am I right about that?
I've also taken a quick look at the possibility of using manual
bindings, but my one worry is I don't know enough about how value
transformers work with bindings to know if that would really help, or
I'd be stuck in the same place I am now. Can someone please clarify
for me when each value transformer method is used for a binding?
I feel like this must be something obvious, but I've looked around
for a while and haven't been able to find anything. I have a
suspicion that I could be over-thinking this, but I'm not sure
how.... Could you please help to clarify the situation for me?
Thanks,
Sam
_______________________________________________
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