ASCII fix, cleanup.

This commit is contained in:
Alexander Ljungberg committed 2010-12-31 14:18:56 -03:00
1 parent d7316918a3
commit 08dd7d6951
1 file changed
+5 -6
+5 -6
View File
@@ -1372,7 +1372,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
- (void)editColumn:(CPInteger)columnIndex row:(CPInteger)rowIndex withEvent:(CPEvent)theEvent select:(BOOL)flag
{
// FIX ME: Cocoa documenation says all this should be called in THIS method:
// sets up the field editor, and sends selectWithFrame:inView:editor:delegate:start:length: and editWithFrame:inView:editor:delegate:event: to the field editorÕs NSCell object with the NSTableView as the text delegate.
// sets up the field editor, and sends selectWithFrame:inView:editor:delegate:start:length: and editWithFrame:inView:editor:delegate:event: to the field editor's NSCell object with the NSTableView as the text delegate.
if (![self isRowSelected:rowIndex])
[[CPException exceptionWithName:@"Error" reason:@"Attempt to edit row="+rowIndex+" when not selected." userInfo:nil] raise];
@@ -3063,9 +3063,8 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
[dataView setFrame:[self frameOfDataViewAtColumn:column row:row]];
[dataView setObjectValue:[self _objectValueForTableColumn:tableColumn row:row]];
//This gives the table column an opportunity to apply the bindings.
//It will override the value set in the data source, if there is a data source.
//It will do nothing if there is no value binding set.
// This gives the table column an opportunity to apply its bindings.
// It will override the value set above if there is a binding.
[tableColumn prepareDataView:dataView forRow:row];
if (isColumnSelected || [self isRowSelected:row])
@@ -4391,7 +4390,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
if ([selectedIndexes containsIndex:i])
{
i = shouldGoUpward ? [selectedIndexes firstIndex] -1 : [selectedIndexes lastIndex] + 1;
i = MIN(MAX(i,0), [self numberOfRows]-1);
i = MIN(MAX(i,0), [self numberOfRows] - 1);
}
[selectedIndexes addIndex:i];
@@ -4624,7 +4623,7 @@ var CPTableViewDataSourceKey = @"CPTableViewDataSourceKey",
}
else
{
CGContextSetFillColor(context, [CPColor colorWithRed:72/255 green:134/255 blue:202/255 alpha:0.25]);
CGContextSetFillColor(context, [CPColor colorWithRed:72 / 255 green:134 / 255 blue:202 / 255 alpha:0.25]);
CGContextFillRoundedRectangleInRect(context, newRect, 8, YES, YES, YES, YES);
}
CGContextStrokeRoundedRectangleInRect(context, newRect, 8, YES, YES, YES, YES);