1.1 --- a/Source/DemoBoardView.m Mon Jul 14 21:46:09 2008 -0700
1.2 +++ b/Source/DemoBoardView.m Tue Mar 10 22:36:23 2009 -0700
1.3 @@ -49,19 +49,23 @@
1.4
1.5 - (void) startGameNamed: (NSString*)gameClassName
1.6 {
1.7 + [self.game removeObserver: self
1.8 + forKeyPath: @"currentPlayer"];
1.9 + [self.game removeObserver: self
1.10 + forKeyPath: @"winner"];
1.11 +
1.12 [super startGameNamed: gameClassName];
1.13
1.14 - Game *game = self.game;
1.15 - [game addObserver: self
1.16 + [self.game addObserver: self
1.17 forKeyPath: @"currentPlayer"
1.18 options: NSKeyValueObservingOptionInitial
1.19 context: NULL];
1.20 - [game addObserver: self
1.21 + [self.game addObserver: self
1.22 forKeyPath: @"winner"
1.23 options: 0
1.24 context: NULL];
1.25
1.26 - self.window.title = [(id)[game class] displayName];
1.27 + self.window.title = [(id)[self.game class] displayName];
1.28 }
1.29
1.30