Questions tagged [nsprintpanel]
5 questions
1
vote
0 answers
When to resize my NSView for printing?
I have an NSView subclass specifically for printing. I want it to fit the width to the page and the height to the number of records.
But I haven't really found a good spot to size the view. I'm currently sizing the view in -beginDocument (because I…

uliwitness
- 8,532
- 36
- 58
0
votes
0 answers
How to get my job properly in NSPrintPanel?
I want to get which button I clicked in NSPrintPanel. I find NSPrintInfo.shared.jobDisposition shows the operation.
extension NSPrintInfo.JobDisposition {
public static let spool: NSPrintInfo.JobDisposition
public static let preview:…

Ivan
- 3
- 4
0
votes
1 answer
Add 'PageSetupAccessory' to PrintPanel for PDFDocument
I have an app which displays a PDFView, and I want it to print the PDF file from the view. Also, I want the Print panel to show the Page Setup Accessory (i.e. the Paper Size, Orientation and Scale settings, like in Preview, which appear as one panel…

benwiggy
- 1,440
- 17
- 35
0
votes
1 answer
Setting showsPrintPanel to false when using NSPrintOperation causes different sizes when printing
When using NSPrintOperation and setting showsPrintPanel to true, the view prints just fine, however when I set the property to false, the view does not print correctly and is bigger than the paper:
func printBadge(printerName: String){
let…

ColinMasters
- 511
- 7
- 19
0
votes
2 answers
Print panel accessory view shows in OS X 10.11, but not in 10.10 and 10.9
My OS X app supports 10.9 - 10.11. I try to add some options to a printing operation by adding a print accessory view like this:
MyPrintView *printView = [[MyPrintView alloc] initWithData: [self myData]];
NSPrintOperation *printOperation =…

MartinW
- 4,966
- 2
- 24
- 60