Display to screen but will not print
Display to screen but will not print
- Subject: Display to screen but will not print
- From: Mark Friedman <email@hidden>
- Date: Thu, 15 Apr 2004 18:54:56 -0400
I am trying to print the content view of a document window. It has
mostly graphic type objects. I have the fairly standard print method in
my document class:
- (void)printShowingPrintPanel:(BOOL)flag {
NSPrintOperation *printOp;
printOp=[NSPrintOperation
printOperationWithView:[[courseWindowController window] contentView]
printInfo:[self printInfo]];
[printOp setShowPanels:flag];
[self runModalPrintOperation:printOp
delegate:nil
didRunSelector:NULL
contextInfo:NULL];
}
The content view has a couple of buttons and bezier curves (via nib).
These display and print fine. I also have some instances of an
NSTextField class that get added programatically (addSubView...). These
also display and print fine. Similarly I add subviews of an NSView
type class. These have a drawRect method that determines their position
and rotation and either that they are some sort of bezier curve or a
picture read in from a file. These display ok but none of them will
appear when printing. So I'm trying to find out why. I can single step
through the debugger after selecting the Print menu and see it go
through each of these objects' drawRect method but they don't appear in
the print preview or on paper. Any ideas?
_______________________________________________
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.