• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trying to bind to reverseTransformedValue: in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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>)

  • Prev by Date: Re: Trying to bind to reverseTransformedValue: in IB
  • Next by Date: Re: [Leopard] Spotlight/Help-like menu item
  • Previous by thread: Re: Trying to bind to reverseTransformedValue: in IB
  • Next by thread: unknown type in debugger
  • Index(es):
    • Date
    • Thread