UniqueWindowController.m
changeset 6 2d492d8c2053
parent 3 8fad19466c59
child 11 e5976864dfe9
     1.1 --- a/UniqueWindowController.m	Sun Apr 06 19:13:27 2008 -0700
     1.2 +++ b/UniqueWindowController.m	Fri Apr 18 09:25:10 2008 -0700
     1.3 @@ -36,12 +36,20 @@
     1.4      if( ! w ) {
     1.5          w = [[self alloc] initWith: model];
     1.6          [w showWindow: self];
     1.7 +    } else {
     1.8 +        if( model != w.model )
     1.9 +            [w reopenWith: model];
    1.10      }
    1.11      [w.window makeKeyAndOrderFront: self];
    1.12      return w;
    1.13  }
    1.14  
    1.15  
    1.16 +- (void) reopenWith: (id)model
    1.17 +{
    1.18 +}
    1.19 +
    1.20 +
    1.21  - (void) windowWillClose: (NSNotification*)n
    1.22  {
    1.23      [self autorelease];