On Dec 23, 2009, at 4:34 PM, Lance Kwan wrote:
> I cannot uncheck the NSbuttonCell inside the tableView. When running the
> program, i set all the checkbox to NSOnState. meaning they are all check when
> running my program.
> But when clicking the checkbox it will no t uncheck. Is there a way i
I cannot uncheck the NSbuttonCell inside the tableView. When running the
program, i set all the checkbox to NSOnState. meaning they are all check when
running my program.
But when clicking the checkbox it will no t uncheck. Is there a way i could
uncheck? because setting the state to NSOffState
On Dec 23, 2009, at 02:05, Lance Kwan wrote:
> I have troubles on unchecking a checkbox in a table view.
What troubles? We can't help if we don't know.
> if([buttonCell state] == 1)
Why are you using 0 and 1 for your 'if' tests, instead of NSOffState and
NSOnState?
>
Good day. I have troubles on unchecking a checkbox in a table view. Here are
my codes. Your help is highly appreciated. Im new to cocoa.
declarations
IBOutlet NSTableView* oTableView;
NSMutableArray* oDatas;
NSTableColumn *columnInCheckBox;
-(IBAction)tableViewSe