Convert to Swift 4.2

This commit is contained in:
Damiano Galassi committed 2018-06-07 11:30:39 +02:00
1 parent c5305ad90e
commit 5b4600b9dd
30 files changed
+66 -66

No files matched your search

+2 -2
View File
@@ -43,7 +43,7 @@ class TracksViewController: NSViewController, NSTableViewDataSource, NSTableView
}()
override var nibName: NSNib.Name? {
return NSNib.Name(rawValue: "TracksViewController")
return "TracksViewController"
}
override func viewDidLoad() {
@@ -272,7 +272,7 @@ class TracksViewController: NSViewController, NSTableViewDataSource, NSTableView
acceptDrop info: NSDraggingInfo,
row: Int,
dropOperation: NSTableView.DropOperation) -> Bool {
let data: Data = info.draggingPasteboard().data(forType: pasteboardType)!
let data: Data = info.draggingPasteboard.data(forType: pasteboardType)!
let rowIndexes: IndexSet = NSKeyedUnarchiver.unarchiveObject(with: data) as! IndexSet
if let dragRow = rowIndexes.first {