Re: Printing
Re: Printing
- Subject: Re: Printing
- From: Paolo Bertani <email@hidden>
- Date: Thu, 18 May 2006 11:44:07 +0200
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
References: | |
| >Printing (From: Paolo Bertani <email@hidden>) |
| >Re: Printing (From: "Johan Kool" <email@hidden>) |