Skip to content

Commit

Permalink
Swift 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
onmyway133 committed Jan 24, 2019
1 parent 8470ed9 commit b2505d6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
10 changes: 2 additions & 8 deletions FinderGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@
SDKROOT = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand Down Expand Up @@ -560,6 +561,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand All @@ -574,7 +576,6 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
};
name = Debug;
};
Expand All @@ -589,7 +590,6 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
};
name = Release;
};
Expand All @@ -603,7 +603,6 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGoTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FinderGo.app/Contents/MacOS/FinderGo";
};
name = Debug;
Expand All @@ -618,7 +617,6 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGoTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FinderGo.app/Contents/MacOS/FinderGo";
};
name = Release;
Expand All @@ -632,7 +630,6 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGoUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
TEST_TARGET_NAME = FinderGo;
};
name = Debug;
Expand All @@ -646,7 +643,6 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGoUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
TEST_TARGET_NAME = FinderGo;
};
name = Release;
Expand All @@ -662,7 +658,6 @@
PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGo.FinderSyncExtension;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 3.0;
};
name = Debug;
};
Expand All @@ -677,7 +672,6 @@
PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGo.FinderSyncExtension;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 3.0;
};
name = Release;
};
Expand Down
2 changes: 1 addition & 1 deletion FinderGo/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ViewController: NSViewController {
worker.run()

DispatchQueue.main.asyncAfter(deadline: .now() + 0.01) {
NSApplication.shared().terminate(self)
NSApplication.shared.terminate(self)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion FinderSyncExtension/ExtensionWorker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct ExtensionWorker {
panel.message = "Please select the User > Library > Application Scripts > \(bundle) folder"

panel.begin { result in
guard result == NSFileHandlingPanelOKButton,
guard result.rawValue == NSFileHandlingPanelOKButton,
panel.url == self.scriptPath else {

self.alert(message: "Script folder was not selected")
Expand Down
4 changes: 2 additions & 2 deletions FinderSyncExtension/FinderSync.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class FinderSync: FIFinderSync, NSMenuDelegate {
return
}

let board = NSPasteboard.general()
board.setString(targetedUrl.path, forType: NSPasteboardTypeString)
let board = NSPasteboard.general
board.setString(targetedUrl.path, forType: NSPasteboard.PasteboardType.string)
}

// MARK: - Action
Expand Down

0 comments on commit b2505d6

Please sign in to comment.