Replace some deprecated methods with newer ones

This commit is contained in:
Damiano Galassi committed 2024-07-06 17:03:58 +02:00
1 parent 89ba80859e
commit ea9a72b28a
5 files changed
+9 -8

No files matched your search

+1 -1
View File
@@ -747,7 +747,7 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
//MARK: Drag & Drop
func tableView(_ tableView: NSTableView, writeRowsWith rowIndexes: IndexSet, to pboard: NSPasteboard) -> Bool {
let data = NSKeyedArchiver.archivedData(withRootObject: rowIndexes)
let data = try? NSKeyedArchiver.archivedData(withRootObject: rowIndexes, requiringSecureCoding: true)
pboard.declareTypes([tablePasteboardType], owner: self)
pboard.setData(data, forType: tablePasteboardType)
return true