[Pythonmac-SIG] PMPrinterPrintWithProvider

2019-01-23 Thread Ben Byram-Wigfield via Pythonmac-SIG
Hello I want to use some of the Printing APIs, but I’m having trouble finding them. Have things like PMPrinterPrintWithProvider, PMPrinterPrintWithFile, been implemented in PyObjC? I can’t find them in ApplicationServices, AppKit, Quartz or CoreFoundation modules. Thanks Ben _

[Pythonmac-SIG] Catalina issue

2019-10-29 Thread Ben Byram-Wigfield via Pythonmac-SIG
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

[Pythonmac-SIG] Supplying Unicode strings to pyobjc

2022-04-10 Thread Ben Byram-Wigfield via Pythonmac-SIG
I'm converting a lot of python2 scripts that use pyobjc to python3, and having trouble getting them to work. The problem seems to relate to the Unicode changes in python3. Something as simple as supplying a string to method like this: provider = CGDataProviderCreateWithFilename(filename) gives