• 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
Issue with NSPrintInfo values being weird...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue with NSPrintInfo values being weird...


  • Subject: Issue with NSPrintInfo values being weird...
  • From: Stéphane Sudre <email@hidden>
  • Date: Thu, 5 Sep 2002 11:56:58 +0200

I'm currently playing with the Printing feature of Cocoa and using
"Cocoa Programming for Mac OS X" as a basis for it (even though the
chapter about Printing is quite limited to simple cases).

In order to have a good printer output, I need to take in consideration
margins.

This is where I'm seeing a problem.

The Page Attributes is:

A4
Scale 100%
Paper Margins:
Top: 0.25 in
Left: 0.25 in
Bottom: 0.57 in
Right: 0.25 in

This is the value I'm getting using:

tPaginationDictionary=[inPrintInfo dictionary];

leftMargin_=[[tPaginationDictionary objectForKey:NSPrintLeftMargin]
floatValue];
rightMargin_=[[tPaginationDictionary objectForKey:NSPrintRightMargin]
floatValue];
topMargin_=[[tPaginationDictionary objectForKey:NSPrintTopMargin]
floatValue];
bottomMargin_=[[tPaginationDictionary objectForKey:NSPrintBottomMargin]
floatValue];

leftMargin_ 72
rightMargin_ 72
topMargin_ 90
bottomMargin 90

These values are weird for various reasons:

1) topMargin_ should the same as left and right according to the Page
Setup
2) 72 points on a 595 points width is a bit big for a margin.

Any idea?
_______________________________________________
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: David Rehring <email@hidden>
  • Prev by Date: Trouble after updating DevTools
  • Next by Date: Re: Issue with NSPrintInfo values being weird...
  • Previous by thread: Re: Trouble after updating DevTools
  • Next by thread: Re: Issue with NSPrintInfo values being weird...
  • Index(es):
    • Date
    • Thread