jens@1: // jens@1: // UniqueWindowController.h jens@1: // Cloudy jens@1: // jens@1: // Created by Jens Alfke on 3/14/08. jens@1: // Copyright 2008 __MyCompanyName__. All rights reserved. jens@1: // jens@1: jens@1: #import jens@1: jens@1: jens@1: @interface UniqueWindowController : NSWindowController jens@1: jens@1: + (UniqueWindowController*) instanceWith: (id)model; jens@1: + (UniqueWindowController*) openWith: (id)model; jens@1: jens@3: + (BOOL) isModel: (id)model1 equalToModel: (id)model2; jens@3: jens@6: - (void) reopenWith: (id)model; jens@6: jens@1: @end jens@1: jens@1: jens@1: @interface UniqueWindowController (Abstract) jens@1: jens@1: - (id) initWith: (id)model; jens@1: @property (readonly) id model; jens@1: jens@1: @end