Browse Source

Fixed about window - now it renders always on top

master
Claire 2 years ago
parent
commit
2a7565b3c5
  1. 7
      LunaMac.xcodeproj/project.pbxproj
  2. 1
      LunaMac/AppDelegate.swift
  3. 8
      LunaMac/Info.plist
  4. 7
      LunaMac/LunaMac.entitlements

7
LunaMac.xcodeproj/project.pbxproj

@ -101,6 +101,11 @@
TargetAttributes = {
7ECD0D7728DD2A4100B90958 = {
CreatedOnToolsVersion = 10.3;
SystemCapabilities = {
com.apple.Sandbox = {
enabled = 0;
};
};
};
};
};
@ -279,7 +284,6 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = LunaMac/LunaMac.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = LunaMac/Info.plist;
@ -297,7 +301,6 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = LunaMac/LunaMac.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = LunaMac/Info.plist;

1
LunaMac/AppDelegate.swift

@ -141,6 +141,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
@objc func showAbout() {
let aboutWin = NSWindowController(windowNibName: "InfoBox")
aboutWin.loadWindow()
NSApp.activate(ignoringOtherApps: true)
}
// update menu bar icon

8
LunaMac/Info.plist

@ -2,8 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LSUIElement</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
@ -24,11 +22,17 @@
<string>1</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSUIElement</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2022 A Better Geek. All rights reserved.</string>
<key>NSMainStoryboardFile</key>
<string>Main</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSServices</key>
<array>
<dict/>
</array>
</dict>
</plist>

7
LunaMac/LunaMac.entitlements

@ -1,10 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
</dict>
<dict/>
</plist>

Loading…
Cancel
Save