Re: Can you "bind" two values into one?
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