␉img = [[NSImage alloc] initWithContentsOfFile: sRes];␊ |
␉return img;␊ |
}␊ |
//--------------------------------------------------------------------------␊ |
- (BOOL)tableView:(NSTableView *)tableView shouldSelectRow:(NSInteger)row␊ |
{␊ |
␉PartitionInfoElement* partInfo = [PartsInfoMgr objectAtIndex:row];␊ |
␉BOOL ret = (partInfo != nil && [partInfo hidden]== false) ? YES : NO;␊ |
␉[partInfo release];␊ |
␉␊ |
␉return ret;␊ |
}␊ |
␊ |
//--------------------------------------------------------------------------␊ |
#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 {␊ |
␉␊ |
␉NSTableView* tv= [notification object];␊ |