Hi,
This is a change in behaviour in macOS. The workaround is to create an
NSApplication instance, for example by calling
Cocoa.NSApplication.sharedApplication().
Ronald
—
Twitter: @ronaldoussoren
Blog: https://blog.ronaldoussoren.net/
> On 29 Oct 2019, at 19:34, Ben Byram-Wigfield via Python
Hi,
Thanks for the report. I can reproduce this in a VM running 10.15.1 (using a
virtualenv environment). I’ve filed issue #282 about this, to help me remember
to investigate this.
/usr/bin/python on the same system works fine, but is using an ancient version
of PyObjC.
Ronald
—
Twitter: @r
The following two lines work in Mojave, but flag an error in Catalina:
>>> from AppKit import NSSavePanel
>>> panel = NSSavePanel.savePanel()
The error is:
2019-10-29 18:24:22.275 Python[6577:255233] *** Assertion failure in
+[NSServiceViewController currentAppIsViewService],
/BuildRoot/Librar