Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljungberg committed May 27, 2012
1 parent aa54637 commit bc79d57
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Tests/Manual/TableTest/DragAndDrop/AppController.j
Expand Up @@ -2,15 +2,15 @@
* 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.
*/

@import <Foundation/CPObject.j>
@import <Foundation/CPIndexSet.j>
@import <Foundation/CPRange.j>

TableTestDragAndDropTableViewDataType = "@TableTestDragAndDropTableViewDataType";
TableTestDragAndDropTableViewDataType = @"TableTestDragAndDropTableViewDataType";

@implementation AppController : CPObject
{
Expand All @@ -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];
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bc79d57

Please sign in to comment.