]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix type convertion errors.
authorpatr0nus <patronum@outlook.com>
Sat, 25 Oct 2014 03:06:10 +0000 (11:06 +0800)
committerpatr0nus <patronum@outlook.com>
Sat, 25 Oct 2014 03:06:10 +0000 (11:06 +0800)
atom/browser/atom_browser_main_parts_mac.mm
atom/browser/browser_mac.mm

index d5b23aef4f9d846b5ee81373e36922b701b7002d..1e77907329c51c6bcf831d33854f3588e37b2b9d 100644 (file)
@@ -21,7 +21,7 @@ void AtomBrowserMainParts::PreMainMessageLoopStart() {
   NSApplication* application = [AtomApplication sharedApplication];
 
   AtomApplicationDelegate* delegate = [AtomApplicationDelegate alloc];
-  [NSApp setDelegate:delegate];
+  [NSApp setDelegate:(id<NSFileManagerDelegate>)delegate];
 
   base::FilePath frameworkPath = brightray::MainApplicationBundlePath()
       .Append("Contents")
index c799da0f105ece5df2f6bcacdec676fb815eccab..afc5e351458d3ec9236ff73c55694f33b0a2b840 100644 (file)
@@ -29,7 +29,7 @@ std::string Browser::GetExecutableFileProductName() const {
 }
 
 int Browser::DockBounce(BounceType type) {
-  return [[AtomApplication sharedApplication] requestUserAttention:type];
+  return [[AtomApplication sharedApplication] requestUserAttention:(NSRequestUserAttentionType)type];
 }
 
 void Browser::DockCancelBounce(int rid) {