• 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
RE: Printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: How can I create a PDF document from a string in a non-GUI application?
  • Next by Date: Re: How can I create a PDF document from a string in a non-GUI application?
  • Previous by thread: Re: Printing
  • Next by thread: Re: Printing
  • Index(es):
    • Date
    • Thread