checkButton Binding in a tableView
checkButton Binding in a tableView
- Subject: checkButton Binding in a tableView
- From: Administrateur internet lutin Ludique <email@hidden>
- Date: Wed, 23 Jun 2004 15:33:49 +0200
Hi,
I'm new to bindings and, by following Michael Beam tutorial (thanks to
him) I set my tableView to display and alter the dats of my
arrayController.
The problem is that one of my columns is holding checkedButtons to
reflect a boolean (in fact coded as an int) value. The cell reflects
the state of the value, but when I click on the button, its state never
changes. In IB, the column "is editable" button is ON.
Here is the code I use to create the checkButton column (thanks to I
forgot who ...) :
checkedColumn = [cnxTable tableColumnWithIdentifier:@"remonte"];
checkedButton = [NSButtonCell new];
[checkedButton setButtonType: NSSwitchButton];
[checkedButton setTitle: @""];
[checkedColumn setDataCell: checkedButton];
Does anybody see where I'm having a (several) mistake ?
Thanks.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.