0
스위프트를 사용하는 xcode mac app에서 작업 중입니다. & NSTableView에 파일 놓기를 구현했으며 파일 시스템에서 끌어서 놓기 작업 후에 포커스가 사라지는 경우를 제외하고는 제대로 작동합니다.드래그 앤 드롭 후 윈도우의 포커스가 사라짐
override func performDragOperation(sender: NSDraggingInfo) -> Bool {
let thefilesNSArray = sender.draggingPasteboard().propertyListForType(NSFilenamesPboardType) as! NSArray
let theFiles = thefilesNSArray as AnyObject as! [String]
let pageDict = ["key": theFiles]
return false
}
드래그 작업이 완료된 후 앱에 포커스를 설정하는 방법은 무엇입니까? 내가 쉽게
그것을 할 수 있어요