Skip to content

Commit

Permalink
Updated demo project
Browse files Browse the repository at this point in the history
  • Loading branch information
orchetect committed Nov 25, 2024
1 parent c7a6c4a commit 2e1e57e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions Demo/Demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 77;
objectVersion = 70;
objects = {

/* Begin PBXBuildFile section */
Expand All @@ -15,11 +15,7 @@
/* End PBXFileReference section */

/* Begin PBXFileSystemSynchronizedRootGroup section */
E2253BB32C9FD258003D69BB /* Demo */ = {
isa = PBXFileSystemSynchronizedRootGroup;
path = Demo;
sourceTree = "<group>";
};
E2253BB32C9FD258003D69BB /* Demo */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = Demo; sourceTree = "<group>"; };
/* End PBXFileSystemSynchronizedRootGroup section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -84,14 +80,15 @@
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1600;
LastUpgradeCheck = 1600;
LastUpgradeCheck = 1610;
TargetAttributes = {
E2253BB02C9FD258003D69BB = {
CreatedOnToolsVersion = 16.0;
};
};
};
buildConfigurationList = E2253BAC2C9FD258003D69BB /* Build configuration list for PBXProject "Demo" */;
compatibilityVersion = "Xcode 15.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
Expand All @@ -103,7 +100,6 @@
packageReferences = (
E2253BE72C9FD361003D69BB /* XCLocalSwiftPackageReference "../../MacControlCenterUI" */,
);
preferredProjectObjectVersion = 77;
productRefGroup = E2253BB22C9FD258003D69BB /* Products */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -168,6 +164,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand All @@ -194,6 +191,7 @@
SDKROOT = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 6.0;
};
name = Debug;
};
Expand Down Expand Up @@ -231,6 +229,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand All @@ -249,6 +248,7 @@
MTL_FAST_MATH = YES;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_VERSION = 6.0;
};
name = Release;
};
Expand All @@ -261,6 +261,7 @@
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = XWV9RUCWEG;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
Expand All @@ -276,7 +277,6 @@
PRODUCT_BUNDLE_IDENTIFIER = "com.orchetect.MacControlCenterUI.Demo${DEVELOPMENT_TEAM}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -289,6 +289,7 @@
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = XWV9RUCWEG;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
Expand All @@ -304,7 +305,6 @@
PRODUCT_BUNDLE_IDENTIFIER = "com.orchetect.MacControlCenterUI.Demo${DEVELOPMENT_TEAM}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand Down
6 changes: 3 additions & 3 deletions Demo/Demo/DemoApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ struct DemoApp: App {

// MARK: App Lifecycle & Global

func activateApp() {
@MainActor func activateApp() {
NSApp.activate(ignoringOtherApps: true)
}

/// This still works on macOS 14 thankfully.
func showStandardAboutWindow() {
@MainActor func showStandardAboutWindow() {
NSApp.sendAction(
#selector(NSApplication.orderFrontStandardAboutPanel(_:)),
to: nil,
from: nil
)
}

func quit() {
@MainActor func quit() {
NSApp.terminate(nil)
}

0 comments on commit 2e1e57e

Please sign in to comment.