NSTableView updating checkboxes
NSTableView updating checkboxes
- Subject: NSTableView updating checkboxes
- From: Jo Phils <email@hidden>
- Date: Thu, 19 Mar 2009 10:43:02 -0700 (PDT)
Hello,
I am still a Cocoa beginner and looking for some help. Based on Using a Table Data Source in the Table View Programming Guide I have initiated my Table View with 2 columns...one for filenames and one for checkboxes (NSButtonCell). Everything is fine except this method:
- (void)tableView:(NSTableView *)aTableView
setObjectValue:anObject
forTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex
I can't seem to get the right syntax to tell my Table View to toggle the state. I am able to initiate my Table View with the checkboxes in the ON state (other method) but this method is where I'm stuck. My source is a NSArray *filenames and my table column is "column2." If someone could help show me how to code this I would appreciate it very much not just to get me passed this point but also so I can learn what I'm doing wrong. :-)
Thank you very much,
Rick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden