• 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
How to print a window PLUS its open drawer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to print a window PLUS its open drawer


  • Subject: How to print a window PLUS its open drawer
  • From: Graham Gyatt <email@hidden>
  • Date: Wed, 5 Jun 2002 22:35:12 -0700

I have a simple, single (small) window app, and the window has a single (small) drawer.
I've implemented a simple print method per Hillegass p305:

- (IBAction)print:(id)sender
{
NSPrintInfo *printInfo = [NSPrintInfo sharedPrintInfo];
NSPrintOperation *printOp = [NSPrintOperation
printOperationWithView:[myWindow contentView] printInfo:printInfo];
[printOp setShowPanels:YES];
[printOp runOperation];
}

It works fine (thanks, Aaron), except of course it only ever prints the content of the main window. When the drawer is open, I would like to also print, on the SAME page, the content of the drawer - so I can print, in effect, a snapshot of the entire app interface (less menu bar). I'm new to Cocoa printing, and I'm guessing there are easy ways and hard ways to do this - so your recommendations could save me some time!
Thanks
- Graham
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: Any way to draw a PixMapHandle into an NSView??
  • Next by Date: Re: QuickTime 6 & CarbonSound.framework
  • Previous by thread: Re: QuickTime 6 & CarbonSound.framework
  • Next by thread: [ot/newbie] Changing init code of widgets in Interface Builder
  • Index(es):
    • Date
    • Thread