Thanks so much @omz !
I don't believe I need any kind of completion handling...so setting to None works great.
I've now been stuck on trying to figure out page orientation. The documentation is here, and I know that I need to do three things basically...
printInfo = ObjcClass('UIPrintInfo').printInfoWithDictionary_(None)
printInfo.orientation = #here's where we have problems...
#in Objc it is just printInfo.orientation = UIPrintInfoOrientationLandscape
#or printInfo.orientation = UIPrintInfoOrientationPortrait
#I know it will default to portrait, but in particular I want to be able to set it to Landscape.
printController.printInfo = printInfo
I believe I need to make some kind of enumeration - seems to me like some kind of dictionary. Maybe I'm wrong on that.
The documentation referenced above gives me this:
typedef enum {
UIPrintInfoOrientationPortrait,
UIPrintInfoOrientationLandscape,
} UIPrintInfoOrientation;
A different kind of topic... is there any other documentation about objc_util than what is available in the app? I'm struggling to grasp how to basically convert objc code into python for use with objc_util. Maybe that is because of my lack of knowledge about Objective C (never learned it!), and even python (just started!)...
I really like objc_util in Pythonista and I hope to use it more, but perhaps it's just way out of my league!!