Skip to content

Commit a76c134

Browse files
Implemented click-to-select in transition list. Set build target to support macOS 10.12+.
1 parent 47c48b4 commit a76c134

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

Traktor Transition Finder.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@
241241
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
242242
GCC_WARN_UNUSED_FUNCTION = YES;
243243
GCC_WARN_UNUSED_VARIABLE = YES;
244-
MACOSX_DEPLOYMENT_TARGET = 10.14;
244+
MACOSX_DEPLOYMENT_TARGET = 10.12;
245245
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
246246
MTL_FAST_MATH = YES;
247247
ONLY_ACTIVE_ARCH = YES;
@@ -315,7 +315,7 @@
315315
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
316316
GCC_WARN_UNUSED_FUNCTION = YES;
317317
GCC_WARN_UNUSED_VARIABLE = YES;
318-
MACOSX_DEPLOYMENT_TARGET = 10.14;
318+
MACOSX_DEPLOYMENT_TARGET = 10.12;
319319
MTL_ENABLE_DEBUG_INFO = NO;
320320
MTL_FAST_MATH = YES;
321321
SDKROOT = macosx;

Traktor Transition Finder/DragDropViewController.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,14 @@ class DragDropViewController: NSViewController {
5151
dropZone.delegate = self
5252
transitionsTableView.delegate = self
5353
transitionsTableView.dataSource = self
54-
if (collectionURL == nil) {
55-
//selectCollection()
54+
transitionsTableView.target = self
55+
transitionsTableView.action = #selector(tableViewClick(_:))
56+
}
57+
58+
@objc func tableViewClick(_ sender:AnyObject) {
59+
if let item = transitions?[transitionsTableView.selectedRow] {
60+
transitions = (graph[item.To.AudioId]?.1.map { e in return e })
61+
currentTransitions = transitions?.map { $0.To }
5662
}
5763
}
5864

Traktor Transition Finder/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.4</string>
18+
<string>1.4.1</string>
1919
<key>CFBundleVersion</key>
2020
<string>1</string>
2121
<key>LSApplicationCategoryType</key>

0 commit comments

Comments
 (0)