Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
RE: Printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Printing



>> 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.