Is it possible to cancel an already running NSPrintOperation? I have the following code:
let printOp: NSPrintOperation = NSPrintOperation(view: ..., printInfo: ...)
printOp.jobTitle = "Custom Print"
printOp.showsPrintPanel = false
printOp.showsProgressPanel = false
printOp.canSpawnSeparateThread = true
printOp.run()
I see there's a NSPrintInfo jobDisposition of .cancel but I don't know how I would apply that to an existing task thats running. You're able to do it in the printer job queue in macOS but I can't find a way to do it in code.
Thanks.