UniqueWindowController.h
author Jens Alfke <jens@mooseyard.com>
Sun May 03 10:13:31 2009 -0700 (2009-05-03)
changeset 27 256370e8935a
parent 6 2d492d8c2053
permissions -rw-r--r--
* MYTask: Added -commandLine, overhauled logging.
* MYDirectoryWatcher: Overhauled logging.
* MYErrorUtils: Disabled use of Security API (so it'll build without linking against Security.framework.)
     1 //
     2 //  UniqueWindowController.h
     3 //  MYUtilities
     4 //
     5 //  Created by Jens Alfke on 3/14/08.
     6 //  Copyright 2008 Jens Alfke. All rights reserved.
     7 //
     8 
     9 #import <Cocoa/Cocoa.h>
    10 
    11 
    12 @interface UniqueWindowController : NSWindowController
    13 
    14 + (UniqueWindowController*) instanceWith: (id)model;
    15 + (UniqueWindowController*) openWith: (id)model;
    16 
    17 + (BOOL) isModel: (id)model1 equalToModel: (id)model2;
    18 
    19 - (void) reopenWith: (id)model;
    20 
    21 @end
    22 
    23 
    24 @interface UniqueWindowController (Abstract)
    25 
    26 - (id) initWith: (id)model;
    27 @property (readonly) id model;
    28 
    29 @end