All pastes #52096 Raw Edit

Miscellany

public text v1 · immutable
#52096 ·published 2006-04-28 21:32 UTC
rendered paste body
- (void)startClockEngine:(id) sender
{
	[levelsDrawer close];
	int i;
	int numRows = [levelTable numberOfRows];
	while(i < numRows)
	{
		[clockController setValue:[[[levelArray arrangedObjects] objectAtIndex:i] valueForKey:@"smallBlind"] forKeyPath:@"patch.smallBlindString.value"];
		[clockController setValue:[[[levelArray arrangedObjects] objectAtIndex:i] valueForKey:@"bigBlind"] forKeyPath:@"patch.bigBlindString.value"];
		[clockController setValue:[[[levelArray arrangedObjects] objectAtIndex:i] valueForKey:@"ante"] forKeyPath:@"patch.anteString.value"];

		// Call function startTimer and pass the length of the round
// function startTimer will display a countdown formatted as 00:00:00 for however long the user has entered
// Once complete the while loops will go to the next row of the table and repeat.

		NSLog(@"Length: %@",[[[levelArray arrangedObjects] objectAtIndex:i] valueForKey:@"length"]);
		++i;
	}
	
}