Add _mac suffix for obj-c files.
This commit is contained in:
parent
264f085afb
commit
8cf1050730
6 changed files with 9 additions and 9 deletions
24
browser/atom_application_delegate_mac.mm
Normal file
24
browser/atom_application_delegate_mac.mm
Normal file
|
@ -0,0 +1,24 @@
|
|||
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#import "browser/atom_application_delegate_mac.h"
|
||||
|
||||
#import "browser/atom_application_mac.h"
|
||||
|
||||
@implementation AtomApplicationDelegate
|
||||
|
||||
- (void)applicationDidFinishLaunching:(NSNotification*)notify {
|
||||
NSAppleEventManager* em = [NSAppleEventManager sharedAppleEventManager];
|
||||
[em setEventHandler:self
|
||||
andSelector:@selector(handleQuitEvent:withReplyEvent:)
|
||||
forEventClass:kCoreEventClass
|
||||
andEventID:kAEQuitApplication];
|
||||
}
|
||||
|
||||
- (void)handleQuitEvent:(NSAppleEventDescriptor*)event
|
||||
withReplyEvent:(NSAppleEventDescriptor*)replyEvent {
|
||||
[[AtomApplication sharedApplication] closeAllWindows:self];
|
||||
}
|
||||
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue