Problem printing a window
Problem printing a window
- Subject: Problem printing a window
- From: Rick Hoge <email@hidden>
- Date: Mon, 24 Oct 2005 16:42:53 -0400
I just added a print method to an application, and naively expected
the following to work:
-(IBAction)printDocument:(id)sender {
NSLog(@"Printing...");
[[self window] print:nil];
}
The above method is implemented in my NSWindowController subclass,
and is called when expected. I do get a printout of the window
(which is actually what I want), and it is even correctly scaled on
the page. The problem is that some parts of the window are
incorrectly rendered. The corners of a textured window contain small
black regions, the close/minimize/zoom buttons are displayed at a
very large size and cropped, and the file preview icon is similarly
enlarged and cropped.
It seems like some portions of the window are rendered by copying
bitmaps to the appropriate region, and this part of the rendering is
failing.
Does anyone have an idea of what might be happening here? I just
want to be able to make a printout of a document window and it was
very easy to get close, but I don't understand why the rendering is bad.
Thanks for any suggestions,
Rick
_______________________________________________
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