1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
#import <AppKit/NSDocument.h>
#import <AppKit/NSDocumentController.h>
#define DOCTYPE @"puzzle"
#define TIFFTYPE @"tiff"
#define DDOCTYPE @".puzzle"
#define DTIFFTYPE @".tiff"
#define DESKTOPEXTRA 150
#define DESKTOPMAX 400
@interface Document : NSDocument
{
NSImage *image;
NSMutableArray *clusters;
NSView *view;
NSString *nameOfTIFF;
int px, py;
}
- init;
- (void)dealloc;
- scramble:(id)sender;
- verify:(id)sender;
- (NSMutableArray *)clusters;
- (NSData *)dataRepresentationOfType:(NSString *)aType;
- (BOOL)loadDataRepresentation:(NSData *)data ofType:(NSString *)aType;
- (BOOL)readFromFile:(NSString *)fileName ofType:(NSString *)docType;
- (void)makeWindowControllers;
- (void)windowControllerDidLoadNib:(NSWindowController *)aController;
@end
|