Configurable logging (LogTo).
Added "my_" prefix to category method names.
Added MurmurHash.
Added UniqueWindowController.
Bug fixes.
2 // UniqueWindowController.m
5 // Created by Jens Alfke on 3/14/08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
9 #import "UniqueWindowController.h"
12 @implementation UniqueWindowController
15 + (UniqueWindowController*) instanceWith: (id)model
17 for( NSWindow *window in [NSApp windows] ) {
18 id delegate = window.delegate;
19 if( window.isVisible && [delegate isKindOfClass: [self class]] ) {
20 UniqueWindowController *c = delegate;
21 if( c.model == model )
29 + (UniqueWindowController*) openWith: (id)model
31 UniqueWindowController *w = [self instanceWith: model];
33 w = [[self alloc] initWith: model];
36 [w.window makeKeyAndOrderFront: self];
41 - (void) windowWillClose: (NSNotification*)n