From fbe479c43f355f76867203add725ea7ab4837324 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 26 Jan 2020 17:36:16 -0500 Subject: [PATCH 1/8] Switch to saving screenshots to the desktop. Or, at least, try. User permission would be required. More reading necessary. --- OSBindings/Mac/Clock Signal/Documents/MachineDocument.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OSBindings/Mac/Clock Signal/Documents/MachineDocument.swift b/OSBindings/Mac/Clock Signal/Documents/MachineDocument.swift index 66f7d7293..67814dd6a 100644 --- a/OSBindings/Mac/Clock Signal/Documents/MachineDocument.swift +++ b/OSBindings/Mac/Clock Signal/Documents/MachineDocument.swift @@ -596,7 +596,7 @@ class MachineDocument: return super.validateUserInterfaceItem(item) } - /// Saves a screenshot of the + /// Saves a screenshot of the machine's current display. @IBAction func saveScreenshot(_ sender: AnyObject!) { // Grab a date formatter and form a file name. let dateFormatter = DateFormatter() @@ -605,8 +605,8 @@ class MachineDocument: let filename = ("Clock Signal Screen Shot " + dateFormatter.string(from: Date()) + ".png").replacingOccurrences(of: "/", with: "-") .replacingOccurrences(of: ":", with: ".") - let pictursURL = FileManager.default.urls(for: .picturesDirectory, in: .userDomainMask)[0] - let url = pictursURL.appendingPathComponent(filename) + let desktopURL = FileManager.default.urls(for: .desktopDirectory, in: .userDomainMask)[0] + let url = desktopURL.appendingPathComponent(filename) // Obtain the machine's current display. var imageRepresentation: NSBitmapImageRep? = nil From c96829c29e554c9ad20583a6d946abb50ef067e4 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 25 Mar 2021 16:25:11 -0400 Subject: [PATCH 2/8] Adds a table view to control tab selection. This should allow the new machine dialogue to retain a sensible width from here onwards. --- .../Base.lproj/MachinePicker.xib | 174 +++++++++++------- .../MachinePicker/MachinePicker.swift | 33 +++- 2 files changed, 139 insertions(+), 68 deletions(-) diff --git a/OSBindings/Mac/Clock Signal/MachinePicker/Base.lproj/MachinePicker.xib b/OSBindings/Mac/Clock Signal/MachinePicker/Base.lproj/MachinePicker.xib index d233186dc..5dd46c036 100644 --- a/OSBindings/Mac/Clock Signal/MachinePicker/Base.lproj/MachinePicker.xib +++ b/OSBindings/Mac/Clock Signal/MachinePicker/Base.lproj/MachinePicker.xib @@ -17,14 +17,14 @@ - - + + - + - - + + If you use File -> Open... to select a disk, tape or cartridge directly, the emulator will select and configure a machine for you. @@ -58,17 +58,17 @@ Gw - - + + - + - + @@ -76,7 +76,7 @@ Gw - + @@ -84,7 +84,7 @@ Gw - + @@ -99,7 +99,7 @@ Gw - + @@ -129,12 +129,12 @@ Gw - - + + - + @@ -142,7 +142,7 @@ Gw - + @@ -150,7 +150,7 @@ Gw - + @@ -164,7 +164,7 @@ Gw - + @@ -186,20 +186,20 @@ Gw - + - + - + @@ -213,7 +213,7 @@ Gw - + @@ -233,11 +233,11 @@ Gw - + - + @@ -254,32 +254,32 @@ Gw - + - + @@ -369,7 +369,7 @@ Gw - + @@ -392,11 +392,11 @@ Gw - + - + @@ -404,7 +404,7 @@ Gw - + @@ -418,7 +418,7 @@ Gw - + @@ -434,7 +434,7 @@ Gw - + @@ -459,11 +459,11 @@ Gw - + - + @@ -476,8 +476,8 @@ Gw - - + + @@ -496,11 +496,11 @@ Gw - + - + @@ -516,7 +516,7 @@ Gw - + @@ -530,7 +530,7 @@ Gw - + @@ -538,7 +538,7 @@ Gw - + @@ -546,7 +546,7 @@ Gw - + @@ -369,7 +369,7 @@ Gw - + @@ -392,11 +392,11 @@ Gw - + - + @@ -404,7 +404,7 @@ Gw - + @@ -418,7 +418,7 @@ Gw - + @@ -434,7 +434,7 @@ Gw - + @@ -459,11 +459,11 @@ Gw - + - + @@ -479,7 +479,7 @@ Gw - + @@ -493,7 +493,7 @@ Gw - + @@ -501,7 +501,7 @@ Gw - + @@ -509,7 +509,7 @@ Gw