diff --git a/Tests/Manual/TableTest/DragAndDrop/AppController.j b/Tests/Manual/TableTest/DragAndDrop/AppController.j index 62d87e38e1..0cc82401bd 100644 --- a/Tests/Manual/TableTest/DragAndDrop/AppController.j +++ b/Tests/Manual/TableTest/DragAndDrop/AppController.j @@ -2,7 +2,7 @@ * AppController.j * DragAndDrop * - * Created by You on December 10, 2010. + * Created by Mike Fellows on December 10, 2010. * Copyright 2010, Your Company All rights reserved. */ @@ -10,7 +10,7 @@ @import @import -TableTestDragAndDropTableViewDataType = "@TableTestDragAndDropTableViewDataType"; +TableTestDragAndDropTableViewDataType = @"TableTestDragAndDropTableViewDataType"; @implementation AppController : CPObject { @@ -25,10 +25,10 @@ TableTestDragAndDropTableViewDataType = "@TableTestDragAndDropTableViewDataType" count = 100; rowList = []; - while(count--) + while (count--) rowList[count] = count; - [scroll setAutoresizingMask:CPViewWidthSizable|CPViewHeightSizable]; + [scroll setAutoresizingMask:CPViewWidthSizable | CPViewHeightSizable]; var table = [[CPTableView alloc] initWithFrame:CGRectMakeZero()]; [table setDataSource:self]; @@ -101,7 +101,7 @@ TableTestDragAndDropTableViewDataType = "@TableTestDragAndDropTableViewDataType" - (id)tableView:(id)tableView objectValueForTableColumn:(CPTableColumn)aColumn row:(int)aRow { - if([aColumn identifier] == "Row") + if ([aColumn identifier] == "Row") return aRow; else return "Col " + [aColumn identifier] + ", Started as Row " + rowList[aRow]; @@ -133,7 +133,7 @@ TableTestDragAndDropTableViewDataType = "@TableTestDragAndDropTableViewDataType" destinationRange, destinationIndexes; - if(operation == CPTableViewDropAbove) + if (operation == CPTableViewDropAbove) { // Save the first object in the list so we can determine where the // beginning of the moved block begins once all the selected rows have