RE: Printing
RE: Printing
- Subject: RE: Printing
- From: "Kenny Millar" <email@hidden>
- Date: Thu, 18 May 2006 10:51:12 +0100
- Organization: Kenny Millar
>> There may be other thins to know, I'd like to read them in a document
instead of keep experimenting.
One great source of this information is Aaron Hillegass' book on
ObjectiveC/Cocoa.
-Kenny
-----Original Message-----
From: cocoa-dev-bounces+kennymillar=email@hidden
[mailto:cocoa-dev-bounces+kennymillar=email@hidden] On Behalf Of
Paolo Bertani
Sent: 18 May 2006 10:44
To: email@hidden
Subject: Re: Printing
> You can use this in your NSView's subclass drawRect: method to
> determine wether you are printing or drawing to screen:
>
> if ([NSGraphicsContext currentContextDrawingToScreen]) {
> // Draw to screen commands
> } else {
> // Draw for print
> }
Yes, I know that.
Doing some "experiments" I found that:
1) the number of pages if determined by the view size when the print
operation is created.
2) the drawRect is called one time for each printed page
There may be other thins to know, I'd like to read them in a document
instead of keep experimenting.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Re: Printing (From: Paolo Bertani <email@hidden>) |