• 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: Can you "bind" two values into one?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can you "bind" two values into one?


  • Subject: Re: Can you "bind" two values into one?
  • From: Ken Victor <email@hidden>
  • Date: Wed, 23 May 2007 09:47:13 -0700

At 9:33 AM -0700 5/23/07, Jerry Krinock wrote:
Date: Wed, 23 May 2007 08:44:47 -0700
From: Jerry Krinock <email@hidden>
Subject: Can you "bind" two values into one?
To: Cocoa Developers Developers <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Say that I have an NSTableView with two columns, firstName and lastName. Say that some marketing hack insists that I store these combined as one string.

For the last hour, I've been trying to figure out how to bind two table columns such as this to a single string in storage, bidirectionally, using Cocoa bindings. But I keep running into a wall, trying to transform two objects into one. What's the smart way to do this?

Thanks,

Jerry Krinock

just a guess, and i haven't tried this....

bind both columns to the same entity field, but use different value transformers for each column.

ken
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Prev by Date: drawing to an image and quickly copying it
  • Next by Date: Re: Can you "bind" two values into one?
  • Previous by thread: Re: Can you "bind" two values into one?
  • Next by thread: views not released when window closed
  • Index(es):
    • Date
    • Thread