Browse files

we seems to need register apple event on this method instead of DidFi…

…nishLaunching, because latter does not work when open 'emacs://' scheme before application launching
  • Loading branch information...
1 parent b1b10ad commit 12145007cb182a75416fbadc74f8acc9094fefa7 @typester committed Oct 31, 2009
Showing with 1 addition and 3 deletions.
  1. +0 −2 Classes/App.h
  2. +1 −1 Classes/App.m
View
2 Classes/App.h
@@ -4,6 +4,4 @@
}
--(void)applicationDidFinishLaunching:(NSNotification*)n;
-
@end
View
2 Classes/App.m
@@ -4,7 +4,7 @@
@implementation App
--(void)applicationDidFinishLaunching:(NSNotification*)n {
+-(void)awakeFromNib {
NSAppleEventManager *appleEventManager = [NSAppleEventManager sharedAppleEventManager];
[appleEventManager setEventHandler:self andSelector:@selector(handleGetURLEvent:withReplyEvent:) forEventClass:kInternetEventClass andEventID:kAEGetURL];
}

0 comments on commit 1214500

Please sign in to comment.