diff -r 3d3dcc3116d5 -r 8fad19466c59 UniqueWindowController.m --- a/UniqueWindowController.m Wed Apr 02 14:45:33 2008 -0700 +++ b/UniqueWindowController.m Sun Apr 06 19:13:27 2008 -0700 @@ -13,11 +13,17 @@ @implementation UniqueWindowController ++ (BOOL) isModel: (id)model1 equalToModel: (id)model2 +{ + return model1==model2; +} + + + (UniqueWindowController*) instanceWith: (id)model { for( NSWindow *window in OpenWindowsWithDelegateClass(self) ) { UniqueWindowController *c = window.delegate; - if( c.model == model ) + if( [self isModel: c.model equalToModel: model] ) return c; } return nil;