Skip to content

Commit c87273d

Browse files
committed
Merge branch 'xcode-build-settings'
2 parents 38b98a7 + dc21daa commit c87273d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

DevDocs.xcodeproj/project.pbxproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
306306
GCC_WARN_UNUSED_FUNCTION = YES;
307307
GCC_WARN_UNUSED_VARIABLE = YES;
308-
MACOSX_DEPLOYMENT_TARGET = 10.15;
308+
MACOSX_DEPLOYMENT_TARGET = 11.0;
309309
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
310310
MTL_FAST_MATH = YES;
311311
ONLY_ACTIVE_ARCH = YES;
@@ -361,7 +361,7 @@
361361
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
362362
GCC_WARN_UNUSED_FUNCTION = YES;
363363
GCC_WARN_UNUSED_VARIABLE = YES;
364-
MACOSX_DEPLOYMENT_TARGET = 10.15;
364+
MACOSX_DEPLOYMENT_TARGET = 11.0;
365365
MTL_ENABLE_DEBUG_INFO = NO;
366366
MTL_FAST_MATH = YES;
367367
SDKROOT = macosx;
@@ -385,6 +385,7 @@
385385
"$(inherited)",
386386
"@executable_path/../Frameworks",
387387
);
388+
MACOSX_DEPLOYMENT_TARGET = 11.0;
388389
PRODUCT_BUNDLE_IDENTIFIER = "com.dteoh.devdocs-macos";
389390
PRODUCT_NAME = "$(TARGET_NAME)";
390391
SWIFT_VERSION = 5.0;
@@ -406,6 +407,7 @@
406407
"$(inherited)",
407408
"@executable_path/../Frameworks",
408409
);
410+
MACOSX_DEPLOYMENT_TARGET = 11.0;
409411
PRODUCT_BUNDLE_IDENTIFIER = "com.dteoh.devdocs-macos";
410412
PRODUCT_NAME = "$(TARGET_NAME)";
411413
SWIFT_VERSION = 5.0;

devdocs-macos/DocumentationWindowController.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ class DocumentationWindowController: NSWindowController {
7272

7373
@objc private func observeDocumentCategory() {
7474
guard let dvc = documentationViewController else { return }
75-
if #available(OSX 11.0, *) {
76-
self.window?.subtitle = dvc.documentCategory ?? ""
77-
}
75+
self.window?.subtitle = dvc.documentCategory ?? ""
7876
}
7977

8078
@objc private func observeDocumentURL() {
@@ -88,7 +86,7 @@ class DocumentationWindowController: NSWindowController {
8886
return
8987
}
9088

91-
window .makeFirstResponder(contentSearchField)
89+
window.makeFirstResponder(contentSearchField)
9290
}
9391
}
9492

0 commit comments

Comments
 (0)