Re: Trying to bind to reverseTransformedValue: in IB
Re: Trying to bind to reverseTransformedValue: in IB
- Subject: Re: Trying to bind to reverseTransformedValue: in IB
- From: "Kyle Sluder" <email@hidden>
- Date: Sat, 26 Jan 2008 22:54:22 -0500
On Jan 26, 2008 10:47 PM, Sam Stigler <email@hidden> wrote:
> Thanks to your explanation, I now see that I should have structured
> the transformers a little differently, and I might go back and rework
> them (or at least swap the -reverseTransformedValue and -
> transformedValue methods).
That would make the most sense, considering the three transformers you
have do not share a common type domain, so there's no clear answer to
the question "What is the type of data stored in your model?", which
means that you don't actually have a model.
> But for simplicity's sake, is it possible
> to accomplish what I was originally asking -- to set up the binding to
> use -reverseTransformedValue instead of -transformedValue, and vice-
> versa?
You configure bindings to use value transformers. That means the
whole transformer, not just its individual methods.
--Kyle Sluder
_______________________________________________
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