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

RE: Off-screen Printing


  • Subject: RE: Off-screen Printing
  • From: "Jonathan E. Jackel" <email@hidden>
  • Date: Wed, 1 Dec 2004 10:35:02 -0500
  • Importance: Normal

> Happy Holidays All....
>
> I am trying to create a program with some custom printing, involving
> layout and images that do not appear on any windows. The Cocoa APIs for
> printing are very powerful, and easy to follow, but they seem to be
> based on the assumption that a given view will be printed. Some view
> object has it's print method called. However, according to the
> documentation, the views have to be part of a window in order to
> function. Thus I can either create the view in a hidden (invisible)
> window, or off the side of a visible window, but not in the visible
> region. What is the best way to handle this type of "off screen"
> printing? What do people recommend? Am I working with a bad assumption,
> ie. that I need to use Views? Or that views have to be connected to a
> window to be printed?

Views do not have to be connected to a window to print, only to be displayed
on screen. You merely need to create the view, draw into it, and send it a
print: message.

I have a fairly advanced example here:

<http://mywebpages.comcast.net/jjackel/CocoaExamples.html>

You'll want to focus on the [MyDocument printDocument:] and [MyPrintView
initWithTextView:printInfo:columns:] methods.

Jonathan


 _______________________________________________
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: 
 >Off-screen Printing (From: Steve Sheets <email@hidden>)

  • Prev by Date: Highlight table row like Mail or Finder?
  • Next by Date: Re: Custom menu drawing / NSPopupButtonCell question
  • Previous by thread: Re: Off-screen Printing
  • Next by thread: OutlineView
  • Index(es):
    • Date
    • Thread