projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support opening/adding a mapping file directly to import it.
[enjoyable.git]
/
EnjoyableApplicationDelegate.m
diff --git
a/EnjoyableApplicationDelegate.m
b/EnjoyableApplicationDelegate.m
index
5f79f20
..
59c3025
100644
(file)
--- a/
EnjoyableApplicationDelegate.m
+++ b/
EnjoyableApplicationDelegate.m
@@
-145,4
+145,11
@@
return menu;
}
return menu;
}
+- (BOOL)application:(NSApplication *)sender openFile:(NSString *)filename {
+ NSURL *url = [NSURL fileURLWithPath:filename];
+ [self.mappingsController addMappingWithContentsOfURL:url];
+ return YES;
+}
+
+
@end
@end