• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Issue with NSPrintInfo values being weird...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue with NSPrintInfo values being weird...


  • Subject: Re: Issue with NSPrintInfo values being weird...
  • From: Scout <email@hidden>
  • Date: Thu, 5 Sep 2002 10:40:46 -0700

InstaPix is returning YES, and using the values returned by NSPrintInfo. Thus, when Apple fixes this bug, InstaPix will automatically print using the full available printing area. Then I'll happily deal with adding an application defined margin.

I've noted that Sherlock.app has the same print margins bug (nice to see Apple ship Cocoa apps instead of Carbon).

This is a horrible bug for the recommended and latest object oriented interface to the seminal desk top publishing platform.

The rest of the printing support from Cocoa is top notch, nothing better on the planet.

(that's a lousy answer from DTS)

cheers

On Thursday, September 5, 2002, at 09:30 AM, Pierre-Olivier Latour wrote:

On Thursday, September 5, 2002, at 05:40 PM, Scout wrote:

The one inch margin issue does continue, and filing the bug again would
not be a bad thing.

Already done a few months ago. Here's the official answer from
email@hidden:

********* MAIL #1

The "margins" that appear in the Page Setup dialog aren't margins, at least
not in the typical application sense. They don't have much to do with the
margin you can set in a Microsoft Office app, for instance. They're really
the bounds of the imageable area of the paper, usually defined by the
printing hardware.

Then if these margins specify the printing area of the paper, they are
totally incorrect in my case. I'm using an LaserWriter 630 with A4 paper.
Printing area is only a few millimeters less than the A4 surface, definitely
not around 0.25 inch on each side.

Should I report a bug for it?

So, they don't have much to do with the margins that you get out of an
NSPrinInfo.

Thank you for the details. However, since I could not find this information
in the docs, would you mind telling me exactly what the margins returned by
NSPrintInfo mean?

<GMT15-Jul-2002 12:44:08GMT> Pierre-Olivier Latour:
* SUMMARY
When going into the Page setup dialog and displaying the summary panel, you
can see that the margins for A4 paper are set as follow:
Left = 0.25''
Top = 0.25''
Bottom = 0.57''
Right = 0.25''

However, when fetching this info the Cocoa object [NSPrintInfo
sharedPrintInfo] and the methods leftMargin, rightMargin and so on, you get
the following:
Left = 1.00''
Top = 1.25''
Bottom = 1.25''
Right = 1.00''

*********** MAIL #2

Thank you for the details. However, since I could not find this information
in the docs, would you mind telling me exactly what the margins returned by
NSPrintInfo mean?"

Margins in the NSPrintInfo sense are the amounts of blank space that should
be left on the left, top, right, or bottom edge of each page when
automatically paginating a view. They're typically larger than the blank
spaces that are dictated by hardware limitations. Margins in an NSPrintInfo
are used during automatic pagination unless the printing view returns YES
when sent a -knowsPageRange: method (see the docs for a description of the
-knowsPageRange: business). See the TextEdit and Sketch sample projects for
some manipulations of NSPrintInfo margins. There's no standard Cocoa UI for
letting users set the margins in a document's NSPrintInfo.

***********

Hope this helps :)


_____________________________________________________________

Pierre-Olivier Latour email@hidden
Lausanne, Switzerland http://www.pol-online.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Issue with NSPrintInfo values being weird...
      • From: Mark Piccirelli <email@hidden>
References: 
 >Re: Issue with NSPrintInfo values being weird... (From: Pierre-Olivier Latour <email@hidden>)

  • Prev by Date: Re: ftp volume mounting
  • Next by Date: Re: Issue with [NSImage drawAtPoint:fromRect:etc:...]
  • Previous by thread: Re: Issue with NSPrintInfo values being weird...
  • Next by thread: Re: Issue with NSPrintInfo values being weird...
  • Index(es):
    • Date
    • Thread