• 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
Problem printing a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Problem printing a window
      • From: Scott Thompson <email@hidden>
  • Prev by Date: Re: [ANN] Coalescing undo in Cocoa
  • Next by Date: Re: Calling GetCurrentEventKeyModifiers in a Cocoa app
  • Previous by thread: Re: Calling GetCurrentEventKeyModifiers in a Cocoa app
  • Next by thread: Re: Problem printing a window
  • Index(es):
    • Date
    • Thread