• 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: filtering the values in an NSTableColumn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >filtering the values in an NSTableColumn (From: Koen van der Drift <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Koen van der Drift <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Ken Thomases <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Koen van der Drift <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Keary Suska <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Koen van der Drift <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Fritz Anderson <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Koen van der Drift <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Fritz Anderson <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Ken Thomases <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Koen van der Drift <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Koen van der Drift <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Ken Thomases <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: Sending keyboard events with unicode strings causes Pages/Keynote/Numbers to hang
  • Next by Date: Classes incompatible with weak references
  • Previous by thread: Re: filtering the values in an NSTableColumn
  • Next by thread: Exception on ^⌘D when AppKit tries to use Lookup on my custom view
  • Index(es):
    • Date
    • Thread