␉return img;␊ |
}␊ |
//--------------------------------------------------------------------------␊ |
- (BOOL)tableView:(NSTableView *)tableView shouldSelectRow:(NSInteger)row␊ |
- (BOOL)tableView:(NSTableView *)tv shouldSelectRow:(NSInteger)row␊ |
{␊ |
␉if (tv!= mPartitionsTable)␊ |
␉␉return YES;␊ |
␊ |
␉PartitionInfoElement* partInfo = [PartsInfoMgr objectAtIndex:row];␊ |
␉BOOL ret = (partInfo != nil && [partInfo hidden]== false) ? YES : NO;␊ |
␉[partInfo release];␊ |
|
␉return ret;␊ |
}␊ |
␊ |
- (BOOL)tableView:(NSTableView *)tableView shouldSelectTableColumn:(NSInteger)col␊ |
- (BOOL)tableView:(NSTableView *)tv shouldSelectTableColumn:(NSInteger)col␊ |
{␊ |
␉if (tableView!= mPartitionsTable)␊ |
␉␉return [self tableView:tableView shouldSelectTableColumn: col];␊ |
␉if (tv!= mPartitionsTable)␊ |
␉␉return YES;␊ |
␉return NO;␊ |
}␊ |
␊ |
//--------------------------------------------------------------------------␊ |
#if 0␊ |
// TODO: rows of hidden parts should look disable ...␊ |
-(NSCell *) tableView:(NSTableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath ␊ |
{␊ |
␉NSCell *cell = [super tableView: tableView cellForRowAtIndexPath: indexPath];␊ |
␊ |
␉if (cell == nil) ␊ |
␉{␊ |
␉␉//␉␉cell.selectionStyle = UITableViewCellSelectionStyleNone;␊ |
␉␉//␉␉cell.selectionStyle = UITableViewCellSelectionStyleBlue;␊ |
␉␉// cell.userInteractionEnabled = NO;␊ |
␉}␊ |
␉␊ |
␉return cell;␊ |
␉␊ |
}␊ |
#endif␊ |
␊ |
//--------------------------------------------------------------------------␊ |
- (void)tableViewSelectionDidChange:(NSNotification *)notification {␊ |
␉␊ |