• 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
Custom Pagination and Scaling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom Pagination and Scaling


  • Subject: Custom Pagination and Scaling
  • From: "Gary J.H. Atkinson" <email@hidden>
  • Date: Thu, 27 Feb 2003 13:27:50 +0000

I have just implemented custom pagination by overriding the

-(BOOL)knowsPageRange:

And

-(NSRect)rectForPage:

Methods.

These are printing the correct areas of my CustomView, however, the printed
output is always scaled to 100%, whereas I require to set the scale to
something larger.

If I check the scale using:

NSPrintInfo *pi = [[NSPrintOperation currentOperation] printInfo];

float scale = [[[pi dictionary] objectForKey:NSPrintScalingFactor]
floatValue];


Which I do in -(NSRect)rectForPage: I find that the scale is correctly set,
but that it is being ignored.

Is this a bug and if so is there a workaround, or do I need to do something
else for custom pagination?

Regards,

--
Gary J.H. Atkinson
Kudlian Soft
email@hidden
_______________________________________________
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.

  • Prev by Date: Re: Ordering Columns and header color
  • Next by Date: Re: Why Cocoa (say vs Carbon)
  • Previous by thread: Re: Ordering Columns and header color
  • Next by thread: NSBezierPath illustrations
  • Index(es):
    • Date
    • Thread