-[NSPrintInfo setScalingFactor:] equivalent pre-Snow Leopard
-
10-03-2021 - |
Domanda
NSPrintInfo
has the following method to change the scale of the printed document. However it is only available starting in OSX 10.6
- (void)setScalingFactor:(CGFloat)scalingFactor
How can I scale my print on Leopard 10.5 ?
Soluzione
Here's a potentially useful web page (which also has some useful looking source code -- including scaling -- in the comments). Why not use it for your 10.5 case and use the proper NSPrintInfo
stuff for the 10.6 & newer case?
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow