1.1 --- a/Source/DemoBoardView.m Sun Mar 16 15:06:47 2008 -0700
1.2 +++ b/Source/DemoBoardView.m Wed May 28 12:47:10 2008 -0700
1.3 @@ -72,6 +72,10 @@
1.4 }
1.5
1.6
1.7 +- (BOOL)canBecomeKeyView {return YES;}
1.8 +- (BOOL)acceptsFirstResponder {return YES;}
1.9 +
1.10 +
1.11 - (void) awakeFromNib
1.12 {
1.13 srandomdev();
1.14 @@ -94,7 +98,7 @@
1.15 }
1.16
1.17
1.18 -- (void) startGameFromMenu: (id)sender
1.19 +- (IBAction) startGameFromMenu: (id)sender
1.20 {
1.21 sCurrentGameName = kMenuGameNames[ [sender tag] ];
1.22 [self startGameNamed: sCurrentGameName];
1.23 @@ -127,6 +131,24 @@
1.24 }
1.25
1.26
1.27 +- (IBAction) undo: (id)sender
1.28 +{
1.29 + if( self.game.currentTurn > 0 )
1.30 + self.game.currentTurn--;
1.31 + else
1.32 + NSBeep();
1.33 +}
1.34 +
1.35 +
1.36 +- (IBAction) redo: (id)sender
1.37 +{
1.38 + if( self.game.currentTurn < self.game.maxTurn )
1.39 + self.game.currentTurn++;
1.40 + else
1.41 + NSBeep();
1.42 +}
1.43 +
1.44 +
1.45 - (IBAction) enterFullScreen: (id)sender
1.46 {
1.47 [super enterFullScreen: sender];