Changeset 6269
- Timestamp:
- Jun 30, 2008, 7:52:18 PM (15 years ago)
- Location:
- trunk/macosx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/FileOutlineView.m
r5904 r6269 117 117 - (NSRect) iconRectForRow: (int) row 118 118 { 119 FileNameCell * cell = (FileNameCell *)[[self tableColumnWithIdentifier: @"Name"] dataCell]; 120 return [cell imageRectForBounds: [self rectOfRow: row]]; 119 FileNameCell * cell = (FileNameCell *)[self preparedCellAtColumn: [self columnWithIdentifier: @"Name"] row: row]; 120 NSRect iconRect = [cell imageRectForBounds: [self rectOfRow: row]]; 121 122 iconRect.origin.x += [self frameOfOutlineCellAtRow: row].size.width; 123 iconRect.origin.x += [self indentationPerLevel] * (float)([self levelForRow: row] + ([[self itemAtRow: row] isFolder] ? 0 : 1)); 124 return iconRect; 121 125 } 122 126 -
trunk/macosx/NSStringAdditions.m
r6261 r6269 151 151 | NSWidthInsensitiveSearch | NSForcedOrderingSearch) 152 152 : (NSCaseInsensitiveSearch | NSNumericSearch); 153 154 153 return [self compare: string options: comparisonOptions range: NSMakeRange(0, [self length]) locale: [NSLocale currentLocale]]; 155 154 } … … 158 157 { 159 158 int comparisonOptions = [NSApp isOnLeopardOrBetter] ? (NSNumericSearch | NSForcedOrderingSearch) : NSNumericSearch; 160 161 159 return [self compare: string options: comparisonOptions range: NSMakeRange(0, [self length]) locale: [NSLocale currentLocale]]; 162 160 }
Note: See TracChangeset
for help on using the changeset viewer.