Emit 'open-file' event when OS X is trying to open file with the app.
This commit is contained in:
parent
01af2fd0c5
commit
7dd48e24d3
10 changed files with 49 additions and 3 deletions
|
@ -16,6 +16,11 @@
|
|||
andEventID:kAEQuitApplication];
|
||||
}
|
||||
|
||||
- (BOOL)application:(NSApplication*)sender
|
||||
openFile:(NSString*)filename {
|
||||
return [[AtomApplication sharedApplication] openFile:filename];
|
||||
}
|
||||
|
||||
- (void)handleQuitEvent:(NSAppleEventDescriptor*)event
|
||||
withReplyEvent:(NSAppleEventDescriptor*)replyEvent {
|
||||
[[AtomApplication sharedApplication] closeAllWindows:self];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue