Re: filtering the values in an NSTableColumn
Re: filtering the values in an NSTableColumn
- Subject: Re: filtering the values in an NSTableColumn
- From: Koen van der Drift <email@hidden>
- Date: Mon, 13 Aug 2012 10:46:16 -0400
Just to follow up, I decided to show both valueA and valueB in my
table, which not only made perfectly sense in my app, but also made my
question no longer relevant.
Thanks everyone for chiming in.
- Koen.
On Sat, Aug 11, 2012 at 7:31 AM, Koen van der Drift
<email@hidden> wrote:
>
> On Aug 11, 2012, at 7:26 AM, Ken Thomases <email@hidden> wrote:
>
>> On Aug 11, 2012, at 6:10 AM, Koen van der Drift wrote:
>>
>>> I'd … like to be able to change all values in the same NSTableColumn based on a check box.
>>>
>>> Say my entity has two properties valueA and valueB; if the checkbox is checked, then the column should show valueA, otherwise it should show valueB.
>>
>>> But the column is bound to valueA in IB, so it will always show valueA.
>>
>> So, how about changing the column's bindings programmatically when the checkbox state changes?
>
>
> I thought about that too after I posted the question. Another possibility could be to have the entity return either valueA or valueB (as 'value') based on the checkbox. This way I can just bind to 'value' and make my predicate with 'value'. Although that would incorporate some controller tasks into the model.
>
> I'll try both and see what works in my case.
>
> - Koen.
>
_______________________________________________
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