Re: How to uncheck checkbox in an NSTableView

2009-12-25 Thread Nick Zitzmann
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

Re: How to uncheck checkbox in an NSTableView

2009-12-25 Thread Lance Kwan
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

Re: How to uncheck checkbox in an NSTableView

2009-12-23 Thread Quincey Morris
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? >

How to uncheck checkbox in an NSTableView

2009-12-23 Thread Lance Kwan
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