Skip to content

Commit

Permalink
Update onboarding instructions for macOS 13
Browse files Browse the repository at this point in the history
  • Loading branch information
tagavari committed Oct 20, 2022
1 parent cab2e19 commit 0cb8400
Show file tree
Hide file tree
Showing 11 changed files with 119 additions and 13 deletions.
6 changes: 3 additions & 3 deletions AirMessage.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,7 @@
ED891A4425A30B77002230EB /* Controllers */ = {
isa = PBXGroup;
children = (
ED87C51F275BB2B800EBB3C6 /* AccessibilityAccessViewController.swift */,
EDD1514825A3232B00117C0D /* AccountConnectViewController.swift */,
ED1E5688269B1C7B0019CCD5 /* AutomationAccessViewController.swift */,
EDE4F2AB26B5C3D50017D684 /* ClientListViewController.swift */,
Expand All @@ -723,7 +724,6 @@
ED1B06532690EBE9006D34DF /* PreferencesViewController.swift */,
2EAEEDAC65D9FE81E6C8197F /* SoftwareUpdateProgressViewController.swift */,
2EAEECDDCA322350B1497585 /* SoftwareUpdateViewController.swift */,
ED87C51F275BB2B800EBB3C6 /* AccessibilityAccessViewController.swift */,
);
path = Controllers;
sourceTree = "<group>";
Expand Down Expand Up @@ -1514,7 +1514,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.10;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -1570,7 +1570,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.10;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "AccessibilityAccess-13.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "AutomationAccess-13.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "FullDiskAccess-13.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 19 additions & 9 deletions AirMessage/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="20037" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="21225" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="20037"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21225"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand Down Expand Up @@ -1115,7 +1115,7 @@ DQ
<scene sceneID="bkz-yt-8qH">
<objects>
<viewController id="2am-CR-TqS" customClass="FullDiskAccessViewController" customModule="AirMessage" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" misplaced="YES" id="CWi-KJ-5Pc">
<view key="view" id="CWi-KJ-5Pc">
<rect key="frame" x="0.0" y="0.0" width="440" height="771"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
Expand Down Expand Up @@ -1248,11 +1248,11 @@ DQ
<box titlePosition="noTitle" translatesAutoresizingMaskIntoConstraints="NO" id="OmP-N6-dEe">
<rect key="frame" x="-3" y="-4" width="70" height="70"/>
<view key="contentView" id="U56-1A-LNg">
<rect key="frame" x="3" y="3" width="64" height="64"/>
<rect key="frame" x="4" y="5" width="62" height="62"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="wU4-sQ-5uY" customClass="DraggableAppView" customModule="AirMessage" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="64" height="64"/>
<rect key="frame" x="0.0" y="-2" width="64" height="64"/>
<constraints>
<constraint firstAttribute="height" constant="64" id="MhO-by-EMQ"/>
<constraint firstAttribute="width" constant="64" id="k84-s4-9r9"/>
Expand Down Expand Up @@ -1316,6 +1316,8 @@ DQ
<connections>
<outlet property="highSierraDraggable" destination="wU4-sQ-5uY" id="01Q-K3-nFB"/>
<outlet property="highSierraText" destination="1G3-zf-0z7" id="xXv-qD-XJn"/>
<outlet property="imageView" destination="1Lh-FI-ldc" id="99C-1M-tFv"/>
<outlet property="lockText" destination="HV6-L0-zQb" id="t0R-RQ-DTg"/>
<outlet property="yosemiteText" destination="ffc-F9-CTg" id="beC-15-3xa"/>
</connections>
</viewController>
Expand Down Expand Up @@ -1503,7 +1505,7 @@ DQ
<scene sceneID="d7c-M2-DyW">
<objects>
<viewController id="hja-eM-bID" customClass="AutomationAccessViewController" customModule="AirMessage" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" misplaced="YES" id="iW0-A4-GC8">
<view key="view" id="iW0-A4-GC8">
<rect key="frame" x="0.0" y="0.0" width="440" height="603"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
Expand Down Expand Up @@ -1619,6 +1621,10 @@ DQ
<constraint firstAttribute="bottom" secondItem="WAG-WG-Pry" secondAttribute="bottom" constant="20" symbolic="YES" id="WLX-MU-yqG"/>
</constraints>
</view>
<connections>
<outlet property="image" destination="JA5-Wi-uLE" id="CLt-aD-qPy"/>
<outlet property="imageView" destination="JA5-Wi-uLE" id="FJ5-sD-6tr"/>
</connections>
</viewController>
<customObject id="bnK-X4-hwq" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
</objects>
Expand Down Expand Up @@ -1838,7 +1844,7 @@ DQ
<scene sceneID="5ep-ML-nt2">
<objects>
<viewController id="hJV-Pf-rNN" customClass="AccessibilityAccessViewController" customModule="AirMessage" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" misplaced="YES" id="TJL-1G-Ah3">
<view key="view" id="TJL-1G-Ah3">
<rect key="frame" x="0.0" y="0.0" width="440" height="743"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
Expand Down Expand Up @@ -1942,11 +1948,11 @@ DQ
<box titlePosition="noTitle" translatesAutoresizingMaskIntoConstraints="NO" id="Z58-u1-eIN">
<rect key="frame" x="-3" y="-4" width="70" height="70"/>
<view key="contentView" id="Uvh-xc-kqi">
<rect key="frame" x="3" y="3" width="64" height="64"/>
<rect key="frame" x="4" y="5" width="62" height="62"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3ha-YC-I3Q" customClass="DraggableAppView" customModule="AirMessage" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="64" height="64"/>
<rect key="frame" x="0.0" y="-2" width="64" height="64"/>
<constraints>
<constraint firstAttribute="width" constant="64" id="4ZJ-gv-ZfQ"/>
<constraint firstAttribute="height" constant="64" id="sIm-CP-7QF"/>
Expand Down Expand Up @@ -2025,6 +2031,10 @@ DQ
<constraint firstAttribute="bottom" secondItem="FYd-xd-V0v" secondAttribute="bottom" constant="20" symbolic="YES" id="WnE-GC-7RL"/>
</constraints>
</view>
<connections>
<outlet property="imageView" destination="hpP-V6-eZG" id="Ry0-SG-b02"/>
<outlet property="lockText" destination="Qbp-Gn-59l" id="DEr-jx-Hzo"/>
</connections>
</viewController>
<customObject id="2Kv-8U-1ao" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
</objects>
Expand Down
13 changes: 13 additions & 0 deletions AirMessage/Controllers/AccessibilityAccessViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,26 @@ import Foundation
import AppKit

class AccessibilityAccessViewController: NSViewController {
@IBOutlet weak var imageView: NSImageView!

//macOS 13 doesn't have a lock in System Settings
@IBOutlet weak var lockText: NSView! //OS X 10.10 to 12

public var onDone: (() -> Void)?

override func viewDidAppear() {
super.viewDidAppear()

//Set the window title
view.window!.title = NSLocalizedString("label.accessibility_access", comment: "")

//Use instructions for System Settings on macOS 13+
if #available(macOS 13.0, *) {
imageView.image = NSImage(named: "AccessibilityAccess-13")
lockText.isHidden = true
} else {
imageView.image = NSImage(named: "AccessibilityAccess")
}
}

@IBAction func onOpenAccessibilityAccess(_ sender: Any) {
Expand Down
9 changes: 9 additions & 0 deletions AirMessage/Controllers/AutomationAccessViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,22 @@ import Foundation
import AppKit

class AutomationAccessViewController: NSViewController {
@IBOutlet weak var imageView: NSImageView!

public var onDone: (() -> Void)?

override func viewDidAppear() {
super.viewDidAppear()

//Set the window title
view.window!.title = NSLocalizedString("label.automation_access", comment: "")

//Update the image
if #available(macOS 13.0, *) {
imageView.image = NSImage(named: "AutomationAccess-13")
} else {
imageView.image = NSImage(named: "AutomationAccess")
}
}

@IBAction func onOpenAutomationAccess(_ sender: Any) {
Expand Down
13 changes: 12 additions & 1 deletion AirMessage/Controllers/FullDiskAccessViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ import Foundation
import AppKit

class FullDiskAccessViewController: NSViewController {
@IBOutlet weak var imageView: NSImageView!

//macOS 13 doesn't have a lock in System Settings
@IBOutlet weak var lockText: NSView! //OS X 10.10 to 12

/*
Older versions of OS X don't support drag-and-drop for file URLs
*/
Expand All @@ -19,9 +24,15 @@ class FullDiskAccessViewController: NSViewController {
override func viewDidLoad() {
super.viewDidLoad()

if #available(macOS 10.13, *) {
//Use instructions for System Settings on macOS 13+
if #available(macOS 13.0, *) {
imageView.image = NSImage(named: "FullDiskAccess-13")
lockText.isHidden = true
yosemiteText.isHidden = true
} else if #available(macOS 10.13, *) {
yosemiteText.isHidden = true
} else {
//Dragging isn't supported
highSierraText.isHidden = true
highSierraDraggable.isHidden = true
}
Expand Down

0 comments on commit 0cb8400

Please sign in to comment.