After migrating to Swift4 the following code raise compile error:
public final class MediaItemView: NSView { public override init(frame frameRect: NSRect
i use this as the solution
//Temp solution for this let NSFilenamesPboardTypeTemp = NSPasteboard.PasteboardType("NSFilenamesPboardType") self.zipView.registerForDraggedTypes([NSFilenamesPboardTypeTemp])
it's seem a bug from apple,them marked the api as work in 10.13 only.