remove document controller variable.
This commit is contained in:
parent
8e8add7510
commit
261aba02db
|
@ -11,7 +11,6 @@
|
||||||
@interface Image_OpenerAppDelegate : NSObject <NSApplicationDelegate> {
|
@interface Image_OpenerAppDelegate : NSObject <NSApplicationDelegate> {
|
||||||
@private
|
@private
|
||||||
NSWindow *_window;
|
NSWindow *_window;
|
||||||
NSDocumentController *_controller;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@property (assign) IBOutlet NSWindow *window;
|
@property (assign) IBOutlet NSWindow *window;
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
|
|
||||||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
||||||
{
|
{
|
||||||
_controller = [[NSDocumentController sharedDocumentController] retain];
|
|
||||||
// Insert code here to initialize your application
|
// Insert code here to initialize your application
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +51,7 @@
|
||||||
{
|
{
|
||||||
[self application: nil openFile: path];
|
[self application: nil openFile: path];
|
||||||
|
|
||||||
[_controller noteNewRecentDocumentURL: url];
|
[[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL: url];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue