Re: how to set the value of NSLevelIndicatorCell in tableView

2010-09-02 Thread Dave DeLong
The NSLevelIndicator wants a number between the minValue and the maxValue to determine what level it should draw. Simply return that value as an NSNumber from the objectValue:forTableColumn:row: datasource method, and the level indicator will use that to set its level. Dave smime.p7s Descript

how to set the value of NSLevelIndicatorCell in tableView

2010-09-02 Thread cocoa-dev
I drag NSLevelIndicatorCell to tableView,and use it like this: -(IBAction)levelAction:(id)sender { NSLog(@"Level clicked: %ld", [senderintValue]); [levelCellsetIntValue:[senderintValue]]; [levelCellsetWarningValue:[senderintValue]]; } - (void)tableView:(NSTableView *)aTableView setObjec