Skip to content

Commit

Permalink
Implemented click-to-select in transition list. Set build target to s…
Browse files Browse the repository at this point in the history
…upport macOS 10.12+.
  • Loading branch information
andersfischernielsen committed May 27, 2019
1 parent 47c48b4 commit a76c134
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Traktor Transition Finder.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MACOSX_DEPLOYMENT_TARGET = 10.12;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -315,7 +315,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MACOSX_DEPLOYMENT_TARGET = 10.12;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
Expand Down
10 changes: 8 additions & 2 deletions Traktor Transition Finder/DragDropViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,14 @@ class DragDropViewController: NSViewController {
dropZone.delegate = self
transitionsTableView.delegate = self
transitionsTableView.dataSource = self
if (collectionURL == nil) {
//selectCollection()
transitionsTableView.target = self
transitionsTableView.action = #selector(tableViewClick(_:))
}

@objc func tableViewClick(_ sender:AnyObject) {
if let item = transitions?[transitionsTableView.selectedRow] {
transitions = (graph[item.To.AudioId]?.1.map { e in return e })
currentTransitions = transitions?.map { $0.To }
}
}

Expand Down
2 changes: 1 addition & 1 deletion Traktor Transition Finder/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.4</string>
<string>1.4.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSApplicationCategoryType</key>
Expand Down

0 comments on commit a76c134

Please sign in to comment.