UniqueWindowController.h
author Olivier Scherler <oscherler@femto-byte.com>
Tue May 12 14:38:30 2009 +0200 (2009-05-12)
changeset 30 2befbe36c746
parent 6 2d492d8c2053
permissions -rw-r--r--
Changed -[MYDirectoryEvent relativePath] to work on standardised paths, in case symlinks are used. Fixes issue #28 in Murky.
     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