macdriver icon indicating copy to clipboard operation
macdriver copied to clipboard

How to use printOperationWithPrintInfo with webkit framework ?

Open sipian opened this issue 3 years ago • 0 comments

I want to use webkit framework to load a URL, and using printOperationWithPrintInfo, on button click, I want to show dialog box to print the webpage.

I am new to macOS development and am building a macOS app in golang using macdriver.

I have followed examples/topframe to launch WKWebView to show my URL. printOperationWithPrintInfo is mentioned in macdriver/api/webkit/wkwebview.objc.json but I am not getting how to proceed further to connect printOperationWithPrintInfo with it.

There is limited documentation online and would appreciate some direction on how to proceed.

sipian avatar Feb 03 '22 16:02 sipian