From 31b2cb35f74e6abe0a6ab9d4fd217778d500b15d Mon Sep 17 00:00:00 2001 From: Randall Luecke Date: Sat, 27 Nov 2010 01:09:24 -0500 Subject: [PATCH] Fix syntax errors causing the build to break --- AppKit/CPTableView.j | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index 4e1842e5b..ed8f9bf70 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -1712,7 +1712,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; // this line serves two purposes // 1. it updates the _numberOfRows cache with the -numberOfRows call // 2. it updates the row height cache if needed - [self noteHeightOfRowsWithIndexesChanged:[CPIndexSet indexSetWithIndexesInRange::CPMakeRange(0, [self numberOfRows])]; + [self noteHeightOfRowsWithIndexesChanged:[CPIndexSet indexSetWithIndexesInRange:CPMakeRange(0, [self numberOfRows])]]; // remove row indexes from the selection if they no longer exist var hangingSelections = oldNumberOfRows - _numberOfRows; @@ -1738,7 +1738,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; */ - (void)noteHeightOfRowsWithIndexesChanged:(CPIndexSet)anIndexSet { - if (!(_implementedDataSourceMethods & CPTableViewDelegate_tableView_heightOfRow_) + if (!(_implementedDataSourceMethods & CPTableViewDelegate_tableView_heightOfRow_)) return; // this method will update the height of those rows, but since the cached array also contains @@ -1760,12 +1760,15 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; _cachedRowHeights[i].heightAboveRow = heightAbove; } else - _cachedRowHeights[i] = {"height":height, "heightAboveRow":heightAbove}; + _cachedRowHeights[i] = {"height":height, "heightAboveRow":heightAbove}; heightAbove += height + intercellSpacing.height; } } +/*! + lays out the dataviews and resizes the tableview so that everything fits +*/ - (void)tile { UPDATE_COLUMN_RANGES_IF_NECESSARY(); @@ -1789,17 +1792,6 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; [self setNeedsDisplay:YES]; } -/* - * - tile - * - sizeToFit - * - noteHeightOfRowsWithIndexesChanged: -*/ -//Scrolling -/* - * - scrollRowToVisible: - * - scrollColumnToVisible: -*/ - /*! Scrolls the receiver vertically in an enclosing NSClipView so the row specified by rowIndex is visible. @param aRowIndex the index of the row to scroll to.