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

Printing my document


  • Subject: Printing my document
  • From: Graham J Lee <email@hidden>
  • Date: Mon, 23 May 2005 13:42:27 +0100

Hi,

My document is essentially an array of objects with X and Y ivars (this is some retro pre-CocoaBindings work - but only because I haven't got around to updating the model since I haven't even finished the rest of the app); it contains a NSTableView and a custom NSView subclass (PPCGraphView) which are both representations of the aforementioned data. Now, how do I go about printing that? I've overridden -printDocument: in my NSDocument subclass, and get the following results:

-(void)printDocument:(id)sender
{
[super printDocument:sender]; /* does nothing */
[tableView print:sender]; /* print the contents (though not column headings) of the table view */
[graphView print:sender]; /* print the graph view out very nicely */
}


However, the tableView and graphView prinouts get sent (perhaps unsurprisingly) as separate print jobs. What I'd like to do is print the tableView followed by the graphView on the same (printer) document, even if they don't fit on the same page. How could I acheive that?

Thanks,
--
Graham Lee                       GPG Key ID: 01D5B9D8
UNIX Systems Manager,
Oxford Physics Practical Course
http://nextstep.sdf-eu.org               01865 273450

_______________________________________________
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


  • Follow-Ups:
    • Re: Printing my document
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: NSBitmapImageRep lost methods?
  • Next by Date: Manual KVO quirks with NSDocument and NSWindowController
  • Previous by thread: Re: NSBitmapImageRep lost methods?
  • Next by thread: Re: Printing my document
  • Index(es):
    • Date
    • Thread