author | snej@snej-mbp.mtv.corp.google.com |
Wed Apr 08 16:31:19 2009 -0700 (2009-04-08) | |
changeset 24 | 629c7605ab2a |
parent 6 | 2d492d8c2053 |
permissions | -rw-r--r-- |
jens@1 | 1 |
// |
jens@1 | 2 |
// UniqueWindowController.h |
jens@11 | 3 |
// MYUtilities |
jens@1 | 4 |
// |
jens@1 | 5 |
// Created by Jens Alfke on 3/14/08. |
jens@11 | 6 |
// Copyright 2008 Jens Alfke. All rights reserved. |
jens@1 | 7 |
// |
jens@1 | 8 |
|
jens@1 | 9 |
#import <Cocoa/Cocoa.h> |
jens@1 | 10 |
|
jens@1 | 11 |
|
jens@1 | 12 |
@interface UniqueWindowController : NSWindowController |
jens@1 | 13 |
|
jens@1 | 14 |
+ (UniqueWindowController*) instanceWith: (id)model; |
jens@1 | 15 |
+ (UniqueWindowController*) openWith: (id)model; |
jens@1 | 16 |
|
jens@3 | 17 |
+ (BOOL) isModel: (id)model1 equalToModel: (id)model2; |
jens@3 | 18 |
|
jens@6 | 19 |
- (void) reopenWith: (id)model; |
jens@6 | 20 |
|
jens@1 | 21 |
@end |
jens@1 | 22 |
|
jens@1 | 23 |
|
jens@1 | 24 |
@interface UniqueWindowController (Abstract) |
jens@1 | 25 |
|
jens@1 | 26 |
- (id) initWith: (id)model; |
jens@1 | 27 |
@property (readonly) id model; |
jens@1 | 28 |
|
jens@1 | 29 |
@end |