diff -r ccc5ed68222d -r b0affce7beb1 Source/DemoBoardView.m --- a/Source/DemoBoardView.m Mon Jul 14 21:46:09 2008 -0700 +++ b/Source/DemoBoardView.m Tue Mar 10 22:36:23 2009 -0700 @@ -49,19 +49,23 @@ - (void) startGameNamed: (NSString*)gameClassName { + [self.game removeObserver: self + forKeyPath: @"currentPlayer"]; + [self.game removeObserver: self + forKeyPath: @"winner"]; + [super startGameNamed: gameClassName]; - Game *game = self.game; - [game addObserver: self + [self.game addObserver: self forKeyPath: @"currentPlayer" options: NSKeyValueObservingOptionInitial context: NULL]; - [game addObserver: self + [self.game addObserver: self forKeyPath: @"winner" options: 0 context: NULL]; - self.window.title = [(id)[game class] displayName]; + self.window.title = [(id)[self.game class] displayName]; }