Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to bind to reverseTransformedValue: in IB



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Trying to bind to reverseTransformedValue: in IB (From: Sam Stigler <email@hidden>)
 >Re: Trying to bind to reverseTransformedValue: in IB (From: "Kyle Sluder" <email@hidden>)
 >Re: Trying to bind to reverseTransformedValue: in IB (From: Sam Stigler <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.