Skip to content

Commit

Permalink
v1.04
Browse files Browse the repository at this point in the history
  • Loading branch information
benwiggy committed Apr 13, 2022
1 parent 7e10815 commit a7cc5cf
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
New,
);
LastSwiftUpdateCheck = 1030;
LastUpgradeCheck = 1030;
LastUpgradeCheck = 1330;
ORGANIZATIONNAME = Ben;
TargetAttributes = {
B5051864230C2C9E0024884E = {
Expand Down Expand Up @@ -189,6 +189,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand All @@ -214,10 +215,10 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MACOSX_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
ONLY_ACTIVE_ARCH = NO;
SDKROOT = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand Down Expand Up @@ -250,6 +251,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand All @@ -269,9 +271,10 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MACOSX_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = NO;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
Expand All @@ -286,16 +289,16 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 60;
CURRENT_PROJECT_VERSION = 62;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = APPlayMIDI/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.12;
MARKETING_VERSION = 1.03;
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 1.04;
PRODUCT_BUNDLE_IDENTIFIER = bensoft.APPlayMIDI;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -310,16 +313,16 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 60;
CURRENT_PROJECT_VERSION = 62;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = APPlayMIDI/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.12;
MARKETING_VERSION = 1.03;
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 1.04;
PRODUCT_BUNDLE_IDENTIFIER = bensoft.APPlayMIDI;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down
Binary file not shown.
Binary file added APPlayMIDI/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file added APPlayMIDI/Assets.xcassets/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions APPlayMIDI/Document.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Document: NSDocument {
let storyboard = NSStoryboard(name: NSStoryboard.Name("Main"), bundle: nil)
let windowController = storyboard.instantiateController(withIdentifier: NSStoryboard.SceneIdentifier("Document Window Controller")) as! NSWindowController
self.addWindowController(windowController)
windowController.shouldCascadeWindows = true
}

@IBAction func copy(_: Any) {
Expand Down
4 changes: 3 additions & 1 deletion APPlayMIDI/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.music</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
Expand Down
4 changes: 2 additions & 2 deletions APPlayMIDI/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ViewController: NSViewController {
@IBOutlet var theSlider: NSSlider!
@IBOutlet var endTimeField: NSTextField!
@IBOutlet weak var playButton: NSButton!

override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
Expand All @@ -40,7 +40,7 @@ class ViewController: NSViewController {
endTimeField.stringValue = timeString
}

_ = Timer.scheduledTimer(timeInterval: 0.1, target: self, selector: Selector(("updateDisplay")), userInfo: nil, repeats: true)
_ = Timer.scheduledTimer(timeInterval: 0.1, target: self, selector: #selector(self.updateDisplay), userInfo: nil, repeats: true)
}

@IBAction func playSwitch(_ sender: NSButton) {
Expand Down
24 changes: 24 additions & 0 deletions APPlayMIDI/WindowController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// WindowController.swift
// APPlayMIDI
//
// Created by Ben Byram-Wigfield on 22/10/2019.
// Copyright © 2019 Ben. All rights reserved.
//

import Cocoa

class WindowController: NSWindowController {

required init?(coder: NSCoder) {
super.init(coder: coder)
shouldCascadeWindows = true
}

override func windowDidLoad() {
super.windowDidLoad()

// Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
}

}

0 comments on commit a7cc5cf

Please sign in to comment.