0

I need to create an NSCollectionView which contains NSCheckBoxes. When I do this for something like labels I can bind to the control's value. But when dealing with NSCheckBoxes I need to bind to both its value (checked or unchecked) and it's text string.

I'm don't understand how I can bind two different attributes of an NSCheckBox. Am I going about this the wrong way?

RobertJoseph
  • 7,968
  • 12
  • 68
  • 113

1 Answers1

1

A checkbox has both a "Value" binding, which is the state of the checkbox (checked, unchecked, or mixed) and a "Title" binding, which is the label string. You can bind each independently, which is what you want.

Ken Thomases
  • 88,520
  • 7
  • 116
  • 154