Confused about NSPrintInfo margins

2009-07-08 Thread Graham Cox
I'm trying to get information about printing margins so my app can show where the edges of the paper are correctly as well as the content area. I thought that's what NSPrintInfo methods such as -topMargin gave me - the margins set by the Page Setup... dialog. But they never change no matt

Re: Confused about NSPrintInfo margins

2009-07-08 Thread Graham Cox
More Info. If I do this: - (void)setPrintInfo:(NSPrintInfo*) printInfo { [super setPrintInfo:printInfo]; PMPageFormatpmf = (PMPageFormat)[printInfo PMPageFormat]; PMPaper paper; OSStatuserr = PMGetPageFormatPaper( pmf, &paper );

Re: Confused about NSPrintInfo margins

2009-07-09 Thread Joel Norvell
Graham, I'm not sure if this is exactly what you were talking about, but I did a test in the printShowingPrintPanel of a program I'd written. The NSPrintInfo methods setLeftMargin, setBottomMargin, setRightMargin and setTopMargin all affect the margin values within the NSPrintInfo instance. H

Re: Confused about NSPrintInfo margins

2009-07-09 Thread Graham Cox
Thanks Joel, certainly setting the margins directly does work. What I'm left wondering is what they are actually for - they are never set by he Page Setup panel and never change with changes to paper size, printer, etc. My conclusion is that these fields are merely a convenience for speci

Re: Confused about NSPrintInfo margins

2009-07-10 Thread Ross Carter
On Jul 9, 2009, at 12:48 AM, Graham Cox wrote: I'm trying to get information about printing margins so my app can show where the edges of the paper are correctly as well as the content area. Don't you want NSPrintInfo - (NSRect)imageablePageBounds ? Ross ___

Re: Confused about NSPrintInfo margins

2009-07-10 Thread Keary Suska
On Jul 9, 2009, at 7:48 PM, Graham Cox wrote: Thanks Joel, certainly setting the margins directly does work. What I'm left wondering is what they are actually for - they are never set by he Page Setup panel and never change with changes to paper size, printer, etc. The docs aren't specifi