NSMatrix of checkboxs binding problem
NSMatrix of checkboxs binding problem
- Subject: NSMatrix of checkboxs binding problem
- From: Jonathan Wight <email@hidden>
- Date: Sat, 25 Jun 2005 11:25:18 -0400
I have an array of dictionaries that all look like { "hidden": true/
false, "title": "someName" }. I want to create a bunch of checkboxes
to control the "hidden" attribute of each dictionary.
I thought the easiest way would be to create an NSMatrix of
checkboxes and then bind them to the array's NSArrayController.
I can bind the title of the checkbox to the "title" attribute of each
dictionary using NSMatrix's "contentValues" binding (and the NSMatrix
grows to accommodate all the items int the array) but none of the
other bindings allow me to bind the on/off value of the checkbox to
the "hidden" attribute.
Using an NSTableView is another (less attractive) option and binding
a table to my array is trivial (just bind one column to "hidden" and
a second column to "title") but I can't seem to get something similar
for this perky NSMatrix.
Jon.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden