Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS 12.7.1 compatibility #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions NeewerLite/NeewerLite.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 54;
objectVersion = 52;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -567,6 +567,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 12.4;
PRODUCT_BUNDLE_IDENTIFIER = com.beyondcow.neewerlite;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -583,14 +584,15 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = MJA89JYF67;
DEVELOPMENT_TEAM = XL4K3URMLL;
ENABLE_HARDENED_RUNTIME = YES;
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
INFOPLIST_FILE = NeewerLite/Resources/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 12.4;
PRODUCT_BUNDLE_IDENTIFIER = com.beyondcow.neewerlite;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down
6 changes: 6 additions & 0 deletions NeewerLite/NeewerLite/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let debugFakeLights = false
let debugFakeLights = false
#endif

@available(macOS 13.0, *)
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {

Expand Down Expand Up @@ -687,6 +688,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {

}

@available(macOS 13.0, *)
extension AppDelegate: NSCollectionViewDataSource {

func numberOfSections(in collectionView: NSCollectionView) -> Int {
Expand All @@ -711,6 +713,7 @@ extension AppDelegate: NSCollectionViewDataSource {
}
}

@available(macOS 13.0, *)
extension AppDelegate: NSCollectionViewDelegateFlowLayout {
func collectionView(_ collectionView: NSCollectionView, layout collectionViewLayout: NSCollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> NSSize {
return NSSize(width: 480, height: 280)
Expand All @@ -737,6 +740,7 @@ extension AppDelegate: NSCollectionViewDelegateFlowLayout {
}
}

@available(macOS 13.0, *)
extension AppDelegate: CBCentralManagerDelegate {

func centralManagerDidUpdateState(_ central: CBCentralManager) {
Expand Down Expand Up @@ -817,6 +821,7 @@ extension AppDelegate: CBCentralManagerDelegate {
}
}

@available(macOS 13.0, *)
extension AppDelegate: CBPeripheralDelegate {

func peripheral(_ peripheral: CBPeripheral, didModifyServices invalidatedServices: [CBService]) {
Expand Down Expand Up @@ -846,6 +851,7 @@ extension AppDelegate: CBPeripheralDelegate {
}
}

@available(macOS 13.0, *)
extension AppDelegate: NSTableViewDataSource, NSTableViewDelegate {

func numberOfRows(in tableView: NSTableView) -> Int {
Expand Down
3 changes: 3 additions & 0 deletions NeewerLite/NeewerLite/Spectrogram/AudioSpectrogram.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ typealias VolumeUpdateCallback = (Float) -> Void
typealias AmplitudeUpdateCallback = (Float) -> Void
typealias AudioSpectrogramImageUpdateCallback = (CGImage) -> Void

@available(macOS 13.0, *)
public class AudioSpectrogram: NSObject {

// Replace the delegate with a callback
Expand Down Expand Up @@ -306,6 +307,7 @@ public class AudioSpectrogram: NSObject {
}
}

@available(macOS 13.0, *)
extension AudioSpectrogram: AVCaptureAudioDataOutputSampleBufferDelegate {

public func captureOutput(_ output: AVCaptureOutput,
Expand Down Expand Up @@ -515,6 +517,7 @@ extension AudioSpectrogram: AVCaptureAudioDataOutputSampleBufferDelegate {
}
}

@available(macOS 13.0, *)
extension AudioSpectrogram {

// Populates the specified `filterBank` with a matrix of overlapping triangular windows.
Expand Down
1 change: 1 addition & 0 deletions NeewerLite/NeewerLite/ViewModels/DeviceViewObject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import Cocoa

@available(macOS 13.0, *)
class DeviceViewObject: NSObject {
private var syncLifetime: Timer?

Expand Down
1 change: 1 addition & 0 deletions NeewerLite/NeewerLite/Views/AudioSpectrogramView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ extension CALayer {
}
}

@available(macOS 13.0, *)
class AudioSpectrogramView: NSView {

var bars: [CALayer] = []
Expand Down
1 change: 1 addition & 0 deletions NeewerLite/NeewerLite/Views/CollectionViewItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import Cocoa

@available(macOS 13.0, *)
class CollectionViewItem: NSCollectionViewItem, NSTextFieldDelegate, NSTabViewDelegate {

@IBOutlet weak var lightModeTabView: NSTabView!
Expand Down