how to set the value of NSLevelIndicatorCell in tableView
how to set the value of NSLevelIndicatorCell in tableView
- Subject: how to set the value of NSLevelIndicatorCell in tableView
- From: cocoa-dev <email@hidden>
- Date: Fri, 3 Sep 2010 09:14:11 +0800 (CST)
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
setObjectValue:(id)anObject
forTableColumn:(NSTableColumn *)aTableColumn
row:(NSInteger)rowIndex{
if([[aTableColumnidentifier]isEqualToString:@"evaluate"]){
[levelCellsetAction:@selector(levelAction:)];
}
}
But i cannot change it in the tableView,it means that when i change it it displays but then it has nothing.How
can i set the value ?any suggestion?
_______________________________________________
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