From 6c23aa9e1b2e8ccd29b0512651e483a7ed9e9eb0 Mon Sep 17 00:00:00 2001 From: Ben Leggiero Date: Wed, 19 Feb 2020 23:01:52 -0700 Subject: [PATCH 1/2] Replaced "BenLeggiero" in URLs with "BlueHuskyStudios" --- README.md | 4 ++-- .../Shared Cross-Platform/Constants/URL Constants.swift | 2 +- .../Image Conveniences/Generated Image Cache.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0a9263e..9987e23 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,9 @@ A Minesweeper-like game written entirely in [Swift](https://Swift.org), using [S ## Bugs and TODOs ## -Any [known bugs](https://github.com/BenLeggiero/Swift-Mines/issues?q=is%3Aopen+is%3Aissue+label%3Abug) and [future features](https://github.com/BenLeggiero/Swift-Mines/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement) will be listed in the Issues tab. +Any [known bugs](https://github.com/BlueHuskyStudios/Swift-Mines/issues?q=is%3Aopen+is%3Aissue+label%3Abug) and [future features](https://github.com/BlueHuskyStudios/Swift-Mines/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement) will be listed in the Issues tab. -If you notice any other bugs or have any other ideas, feel free to [report or suggest them](https://github.com/BenLeggiero/Swift-Mines/issues/new)! +If you notice any other bugs or have any other ideas, feel free to [report or suggest them](https://github.com/BlueHuskyStudios/Swift-Mines/issues/new)! Have fun! diff --git a/Swift Mines/Shared Cross-Platform/Constants/URL Constants.swift b/Swift Mines/Shared Cross-Platform/Constants/URL Constants.swift index 89e7b90..43412cd 100644 --- a/Swift Mines/Shared Cross-Platform/Constants/URL Constants.swift +++ b/Swift Mines/Shared Cross-Platform/Constants/URL Constants.swift @@ -13,7 +13,7 @@ import Foundation public extension URL { /// The URL for the GitHub repo for this app - static let repo = URL(string: "https://github.com/BenLeggiero/Swift-Mines") + static let repo = URL(string: "https://github.com/BlueHuskyStudios/Swift-Mines") ?? URL(fileURLWithPath: "").also { assertionFailure("The repo URL the developer provided was invalid") } /// The URL for providing feedback about Swift Mines diff --git a/Swift Mines/Shared Cross-Platform/Image Conveniences/Generated Image Cache.swift b/Swift Mines/Shared Cross-Platform/Image Conveniences/Generated Image Cache.swift index 7b7274d..4e1cea6 100644 --- a/Swift Mines/Shared Cross-Platform/Image Conveniences/Generated Image Cache.swift +++ b/Swift Mines/Shared Cross-Platform/Image Conveniences/Generated Image Cache.swift @@ -12,7 +12,7 @@ import CrossKitTypes // Some convenient constants for use in the cache. These should be self-explanatory. If they're not, please file a bug: -// https://GitHub.com/BenLeggiero/Swift-Mines/issues/new +// https://GitHub.com/BlueHuskyStudios/Swift-Mines/issues/new private let presumedTallestScreenResolution = 2880 private let presumedEasiestBoardNumberOfVerticalSquares = 4 From 689354a8c00b924c5e2b3b626b1aeb3490ed983f Mon Sep 17 00:00:00 2001 From: Ben Leggiero Date: Wed, 19 Feb 2020 23:07:00 -0700 Subject: [PATCH 2/2] Added explicit Obj-C names to menu selectors I hate how fragile nibs are --- Swift Mines/Swift Mines for macOS/AppDelegate.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Swift Mines/Swift Mines for macOS/AppDelegate.swift b/Swift Mines/Swift Mines for macOS/AppDelegate.swift index d044a18..caf2965 100644 --- a/Swift Mines/Swift Mines for macOS/AppDelegate.swift +++ b/Swift Mines/Swift Mines for macOS/AppDelegate.swift @@ -99,30 +99,35 @@ private extension AppDelegate { /// The user selected the "Source Code" menu item in the "Swift Mines" menu + @objc(didSelectSourceCodeMenuItem:) @IBAction func didSelectSourceCodeMenuItem(sender: NSMenuItem) { NSWorkspace.shared.open(.repo) } /// The user selected the "New" menu item in the "Game" menu + @objc(didSelectNewGameMenuItem:) @IBAction func didSelectNewGameMenuItem(sender: NSMenuItem) { overallAppState.currentScreen = .newGameSetup } /// The user selected the "Restart" menu item in the "Game" menu + @objc(didSelectRestartMenuItem:) @IBAction func didSelectRestartMenuItem(sender: NSMenuItem) { overallAppState.game.startNewGame() } /// The user selected the "Feedback" menu item in the "Help" menu + @objc(didSelectFeedbackMenuItem:) @IBAction func didSelectFeedbackMenuItem(sender: NSMenuItem) { NSWorkspace.shared.open(.feedback) } /// The user selected the "Swift Mines Help" menu item in the "Help" menu + @objc(showHelp:) @IBAction func showHelp(sender: NSMenuItem) { NSWorkspace.shared.open(.help) }