mirror of
https://github.com/ksherlock/ProFUSE-Image-Opener.git
synced 2024-11-26 05:49:21 +00:00
48 lines
894 B
Objective-C
48 lines
894 B
Objective-C
//
|
|
// WindowController.h
|
|
// Image Opener
|
|
//
|
|
// Created by Kelvin Sherlock on 3/1/2011.
|
|
// Copyright 2011 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
@interface WindowController : NSWindowController <NSWindowDelegate> {
|
|
@private
|
|
|
|
IBOutlet NSMatrix *_fsMatrix;
|
|
IBOutlet NSMatrix *_ifMatrix;
|
|
|
|
IBOutlet NSTextView *_textView;
|
|
IBOutlet NSTextField *_nameView;
|
|
IBOutlet NSTextField *_sizeView;
|
|
|
|
IBOutlet NSButton *_mountButton;
|
|
|
|
|
|
NSTask *_task;
|
|
NSFileHandle *_handle;
|
|
|
|
NSString *_filePath;
|
|
|
|
}
|
|
|
|
@property (nonatomic, retain) NSString *filePath;
|
|
|
|
|
|
+(id)controllerWithFilePath: (NSString *)filePath;
|
|
|
|
-(void)runTask;
|
|
|
|
-(IBAction)mountButton: (id)sender;
|
|
|
|
|
|
#pragma mark -
|
|
#pragma mark Notifications
|
|
|
|
-(void)readComplete:(NSNotification *)notification;
|
|
-(void)taskComplete: (NSNotification *)notification;
|
|
@end
|