Printing a view is printing the view's window instead
Printing a view is printing the view's window instead
- Subject: Printing a view is printing the view's window instead
- From: John Blackburn <email@hidden>
- Date: Tue, 30 Oct 2001 12:01:14 -0800
The sample app RandomShapes prints the window contents like this:
NSPrintOperation* printOperation = [NSPrintOperation
printOperationWithView: contentView];
[printOperation runOperationModalForWindow:[contentView window]
delegate:nil didRunSelector:NULL contextInfo:NULL];
These lines look fine according to what I've read in the documentation,
and should result in the view alone being printed. But the entire owning
window's content is being printed instead, window title bar and
everything.
What's wrong here?
Thanks,
John Blackburn