How to print a window PLUS its open drawer
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.