xcode - Opening NSSavePanel as sheet -


i using xcode7 beta2 play around swift 2. trying use file-selection dialog (nssavepanel) brought me trouble.

running following code clicking associated button won't bring dialog sheet (not @ all) make window's decoration disappear, leaving in broken state otherwise functional sheets open dialogs without decoration. using call deprecated api beginsheetmodalforwindow, in commented line, works expected.

@ibaction func openfileclicked(sender: anyobject) {         let openpanel = nssavepanel()         openpanel.cancreatedirectories = true         //openpanel.beginsheetmodalforwindow(self.view.window!, completionhandler: {         openpanel.beginsheet(self.view.window!, completionhandler: {             (result) -> void in             print("opening:\(result)" )         })     } 

is code broken somehow or there issue api calling.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -