• 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
Printing a view is printing the view's window instead
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: newbie question about PRINTING
  • Next by Date: Re: newbie question about PRINTING
  • Previous by thread: Can't override windowDidLoad
  • Next by thread: NSTimeZone and Abstract Classes
  • Index(es):
    • Date
    • Thread