Clean up.

This commit is contained in:
Alexander Ljungberg committed 2012-05-27 22:21:11 +01:00
1 parent aa546374f3
commit bc79d57712
1 file changed
+6 -6
@@ -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 <Foundation/CPIndexSet.j>
@import <Foundation/CPRange.j>
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