From 026c9ae6e36afa8a9bd1af79c7f218ec4039a71b Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Thu, 12 Aug 2010 11:11:33 -0400 Subject: [PATCH] Whitespace fixes :), added missed initialization of loop var, added encodeWithCoder, in some cases it is invoked --- Tools/nib2cib/NSMatrix.j | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Tools/nib2cib/NSMatrix.j b/Tools/nib2cib/NSMatrix.j index 64f85ef7d..917114f47 100644 --- a/Tools/nib2cib/NSMatrix.j +++ b/Tools/nib2cib/NSMatrix.j @@ -8,7 +8,7 @@ var NSMatrixRadioModeMask = 0x40000000, NSMatrixDrawsBackgroundMask = 0x01000000; - + @implementation NSMatrix : CPObject { } @@ -32,8 +32,8 @@ var NSMatrixRadioModeMask = 0x40000000, { var radioGroup = [CPRadioGroup new], frame = CGRectMake(0.0, 0.0, cellSize.width, cellSize.height); - - for (var rowIndex; rowIndex < numberOfRows; ++rowIndex) + + for (var rowIndex = 0; rowIndex < numberOfRows; ++rowIndex) { frame.origin.x = 0; @@ -46,7 +46,7 @@ var NSMatrixRadioModeMask = 0x40000000, [cellView setTitle:[cell title]]; [cellView setBackgroundColor:[CPColor clearColor]]; // the IB default [cellView setObjectValue:[cell objectValue]]; - + [view addSubview:cellView]; NIB_CONNECTION_EQUIVALENCY_TABLE[[cell UID]] = cellView; @@ -59,11 +59,16 @@ var NSMatrixRadioModeMask = 0x40000000, if (drawsBackground) [view setBackgroundColor:backgroundColor]; - + NIB_CONNECTION_EQUIVALENCY_TABLE[[self UID]] = view; } return view; } +- (void)encodeWithCoder:(CPCoder)aCoder +{ + [super encodeWithCoder:aCoder]; +} + @end