I've got the following message in Xcode's Debug Area after importing an image in my app:
"[21950:1148196] Metadata.framework [Error]: couldn't get the client port".
How can I get rid of this error?
Here's my code for uploading a picture:
@IBAction func importButton(sender: AnyObject) {
let uploadFile: NSOpenPanel = NSOpenPanel()
uploadFile.allowsMultipleSelection = false
uploadFile.canChooseFiles = true
uploadFile.canChooseDirectories = false
uploadFile.runModal()
let chosenPicture = uploadFile.URL
if(chosenPicture != nil) {
let pictureImport = NSImage(contentsOfURL: chosenPicture!)
imageWell.image = pictureImport
}
}