Fix build on Xcode 10 b6.

This commit is contained in:
Damiano Galassi committed 2018-08-14 07:49:15 +02:00
1 parent 1d2a2884f0
commit 10bef07af1
10 files changed
+16 -16

No files matched your search

+2 -2
View File
@@ -14,7 +14,7 @@ import Cocoa
@objc optional func paste(to tableview: NSTableView)
}
class ExpandedTableView: NSTableView {
class ExpandedTableView: NSTableView, NSMenuItemValidation {
@objc var pasteboardTypes: [NSPasteboard.PasteboardType]
var pasteboardHasSupportedType: Bool {
@@ -114,7 +114,7 @@ class ExpandedTableView: NSTableView {
}
}
override func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
if let action = menuItem.action {
switch action {
case #selector(delete(_:)):