remove dead code

This commit is contained in:
Kelvin Sherlock 2016-08-18 09:18:40 -04:00
parent 9dd5ad0fb5
commit 0ac2bf2321
2 changed files with 2 additions and 55 deletions

View File

@ -9,14 +9,9 @@
#import <Cocoa/Cocoa.h>
@interface Image_OpenerAppDelegate : NSObject <NSApplicationDelegate> {
@private
NSWindow *_window;
}
@property (assign) IBOutlet NSWindow *window;
//-(IBAction)openDocument:(id)sender;
@end

View File

@ -7,12 +7,9 @@
//
#import "Image_OpenerAppDelegate.h"
#import "WindowController.h"
#import "IODocumentController.h"
@implementation Image_OpenerAppDelegate
@synthesize window = _window;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
@ -23,17 +20,9 @@
-(void)applicationWillFinishLaunching:(NSNotification *)notification {
// initialize the shared document controller.
//[[IODocumentController alloc] init];
}
#if 0
- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename
{
[WindowController controllerWithFilePath: filename];
return YES;
}
#endif
-(BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender {
return NO;
@ -43,42 +32,5 @@
return NO;
}
#if 0
-(IBAction)openDocument:(id)sender
{
NSOpenPanel *panel;
panel = [NSOpenPanel openPanel];
[panel setCanChooseFiles: YES];
[panel setCanCreateDirectories: NO];
[panel setResolvesAliases: YES];
[panel setAllowsMultipleSelection: NO];
[panel setExtensionHidden: NO];
[panel beginWithCompletionHandler: ^(NSInteger result){
if (result == 1)
{
NSURL *url = [[panel URLs] lastObject];
NSString *path = [url isFileURL] ? [url path] : nil;
//NSLog(@"%d %@", (int)result, path);
if (path)
{
[WindowController controllerWithFilePath: path];
[[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL: url];
}
}
}];
}
#endif
@end