• 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: Sat, 11 Aug 2012 07:31:46 -0400

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


  • Follow-Ups:
    • Re: filtering the values in an NSTableColumn
      • From: Koen van der Drift <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>)

  • Prev by Date: Re: filtering the values in an NSTableColumn
  • Next by Date: userSpaceScaleFactor in class NSWindow is deprecated - so what?
  • Previous by thread: Re: filtering the values in an NSTableColumn
  • Next by thread: Re: filtering the values in an NSTableColumn
  • Index(es):
    • Date
    • Thread