Checkboxes in an NSTableView
Checkboxes in an NSTableView
- Subject: Checkboxes in an NSTableView
- From: Brant Sears <email@hidden>
- Date: Thu, 26 Feb 2004 15:31:50 -0800
I have an NSTableView that has a column of checkboxes. I'm attempting to
programatically toggle the value of some of these boxes. I have code that
acquires a reference to the cell by calling:
NSCell* theCell = [myTableColumn dataCellForRow: theRowIndex];
So, now I have an NSCell * which seems to be an NSButtonCell pointer which
is what I would expect. I've attempted to call performClick on it. I've also
tried calling [theCell setIntValue: NSOnState] (or NSOffState) which also
doesn't work.
I've even tried to enable or disable the button cell which apparently I
can't do either.
Any ideas on how I can accomplish the goal of programatically toggling the
checkbox cells?
Brant Sears
_______________________________________________
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.