Chameleon Applications

Chameleon Applications Commit Details

Date:2011-11-19 20:47:37 (12 years 5 months ago)
Author:Rekursor
Commit:358
Parents: 357
Message:Fixed more selection bugs
Changes:
M/trunk/ChameleonPrefPane/Sources/TableViewsController.mm

File differences

trunk/ChameleonPrefPane/Sources/TableViewsController.mm
123123
124124
125125
126
126
127127
128
129
130
128131
129132
130133
......
132135
133136
134137
135
138
136139
137
138
140
141
139142
140143
141144
142145
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161146
162147
163148
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 {

Archive Download the corresponding diff file

Revision: 358