Fix build on Xcode 9.3

This commit is contained in:
Damiano Galassi committed 2018-01-25 13:09:21 +01:00
1 parent 4b83aa7301
commit cb753821a1
9 files changed
+16 -10

No files matched your search

+2 -2
View File
@@ -31,7 +31,7 @@ import Cocoa
@objc init(item: SBQueueItem, delegate: ItemViewDelegate) {
self.item = item
self.delegate = delegate
super.init(nibName: self.nibName, bundle: nil)
super.init(nibName: nil, bundle: nil)
}
required init?(coder: NSCoder) {
@@ -45,7 +45,7 @@ import Cocoa
statusObserver = item.observe(\.status, options: [.initial, .new]) { [weak self] observed, change in
guard let s = self else { return }
DispatchQueue.main.async {
if s.item.status != SBQueueItemStatus.ready && s.item.status != SBQueueItemStatus.editing {
if observed.status != SBQueueItemStatus.ready && observed.status != SBQueueItemStatus.editing {
s.editButton.isEnabled = false
} else {
s.editButton.isEnabled = true
+1 -1
View File
@@ -49,7 +49,7 @@ class MetadataPrefsViewController : NSViewController, NSTableViewDelegate, NSTok
self.currentTokens = []
self.matches = []
super.init(nibName: self.nibName, bundle: nil)
super.init(nibName: nil, bundle: nil)
}
required init?(coder: NSCoder) {
+1 -1
View File
@@ -23,7 +23,7 @@ class OutputPrefsViewController: NSViewController, NSTokenFieldDelegate {
init() {
self.separators = CharacterSet(charactersIn: "{}")
super.init(nibName: self.nibName, bundle: nil)
super.init(nibName: nil, bundle: nil)
}
required init?(coder: NSCoder) {
+1 -1
View File
@@ -20,7 +20,7 @@ class PresetEditorViewController: SBMovieViewController {
init(preset: MetadataPreset) {
self.preset = preset
super.init(nibName: self.nibName, bundle: nil)
super.init(nibName: nil, bundle: nil)
}
required init?(coder: NSCoder) {
+1 -1
View File
@@ -26,7 +26,7 @@ class PresetPrefsViewController: NSViewController, NSTableViewDataSource, NSTabl
init() {
self.currentRow = 0
self.presetManager = PresetManager.shared
super.init(nibName: self.nibName, bundle: nil)
super.init(nibName: nil, bundle: nil)
}
override func loadView() {
@@ -24,7 +24,7 @@ import Cocoa
@objc init(track: MP42ChapterTrack) {
self.track = track
super.init(nibName: self.nibName, bundle: nil)
super.init(nibName: nil, bundle: nil)
}
required init?(coder: NSCoder) {
@@ -29,7 +29,7 @@ import Cocoa
self.track = track
self.mediaTagsController = SBMediaTagsController(track: track)
super.init(nibName: self.nibName, bundle: nil)
super.init(nibName: nil, bundle: nil)
}
required init?(coder: NSCoder) {
+1 -1
View File
@@ -20,7 +20,7 @@ class TokensViewController: NSViewController, NSTokenFieldDelegate {
init(tokens: [String]) {
self.tokens = tokens
self.separators = CharacterSet(charactersIn: "{}")
super.init(nibName: self.nibName, bundle: nil)
super.init(nibName: nil, bundle: nil)
}
required init?(coder: NSCoder) {
+7 -1
View File
@@ -677,7 +677,7 @@
2A37F4A9FDCFA73011CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0910;
LastUpgradeCheck = 0930;
TargetAttributes = {
8D15AC270486D014006FF6A4 = {
LastSwiftMigration = 0900;
@@ -1150,6 +1150,7 @@
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
COMBINE_HIDPI_IMAGES = YES;
@@ -1188,6 +1189,7 @@
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
COMBINE_HIDPI_IMAGES = YES;
@@ -1219,6 +1221,7 @@
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_ENTITLEMENTS = "";
COPY_PHASE_STRIP = NO;
FRAMEWORK_SEARCH_PATHS = (
@@ -1249,6 +1252,7 @@
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_ENTITLEMENTS = "";
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
FRAMEWORK_SEARCH_PATHS = (
@@ -1266,6 +1270,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.galad.${PRODUCT_NAME:identifier}";
PRODUCT_NAME = Subler;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OBJC_BRIDGING_HEADER = "Subler-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 4.0;
@@ -1398,6 +1403,7 @@
LIBRARY_SEARCH_PATHS = "";
MACOSX_DEPLOYMENT_TARGET = 10.9;
RUN_CLANG_STATIC_ANALYZER = NO;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 4.0;
USER_HEADER_SEARCH_PATHS = "";