Re: [MacRuby-devel] get and set a checkbox in tableview

2011-04-30 Thread Pavlos Vinieratos
for some reason, when I put the initial test data in the table view and reloadData, The checkboxes that should be checked, aren't. If I upload it on github, could you take a quick look? It's a small project at the moment. On Sat, Apr 30, 2011 at 3:24 AM, James Chen wrote: > In tableView:objectV

Re: [MacRuby-devel] get and set a checkbox in tableview

2011-04-29 Thread James Chen
In tableView:objectValueForColumn:row:, return ruby true or false should be enough to make the checkbox checked or unchecked. Be sure to check the tableColumn.identifier so that you're actually dealing with the checkbox column. Normally you don't have to do anything in tableView:setObjectValueForC

[MacRuby-devel] get and set a checkbox in tableview

2011-04-29 Thread Pavlos Vinieratos
Hello. I am writing a little app, and I have a table view with a checkbox cell and a text cell in each row. I implemented the data source, and in tableView:objectValueForColumn:row:, in the checkbox row I just return NSOnState or NSOffState, but when I run the app, the checkboxes don't get checked