nitipit / appkit

Gnome desktop application framework based on Webkit, HTML5 and Python
http://nitipit.github.io/appkit
MIT License
42 stars 4 forks source link

NSSavePanel is not working in Mac OS Catalina #34

Open shashanka3799 opened 4 years ago

shashanka3799 commented 4 years ago

Hi Nitipit Nontasuwan,

Description of the issue: NSSavePanel dialog is not working in Mac OS Catalina version.

Details: I am using python 3.7.4 (64-bit) for building our web application in Mac OS.

Observation: Before Catalina:

from AppKit import NSSavePanel
>>> NSSavePanel.savePanel()
<NSSavePanel: 0x7feb46a539e0>

In Catalina:

NSSavePanel.savePanel()
2020-01-29 10:53:05.691 Python[13337:56053] *** Assertion failure in +[NSServiceViewController currentAppIsViewService], /BuildRoot/Library/Caches/com.apple.xbs/Sources/ViewBridge/ViewBridge-462/NSViewService.m:140
2020-01-29 10:53:05.691 Python[13337:56053] *** Assertion failure in +[NSServiceViewController currentAppIsViewService], /BuildRoot/Library/Caches/com.apple.xbs/Sources/ViewBridge/ViewBridge-462/NSViewService.m:140
2020-01-29 10:53:05.736 Python[13337:56356] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'com.apple.view-bridge': Connection interrupted

Expected behavior: It shows save file dialog to user.

Actual behavior: It is not showing save file dialog to user.