• 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 outside of NSView bounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printing outside of NSView bounds


  • Subject: Printing outside of NSView bounds
  • From: "Jeffrey J. Early" <email@hidden>
  • Date: Sun, 03 Sep 2006 16:15:10 -0700
  • Thread-topic: Printing outside of NSView bounds

How can I convince the print job that it's okay to call drawRect outside of
the NSView bounds for printing?

I have a custom NSView subclass where I've specified knowsPageRange: and
rectForPage:. In rectForPage: sometimes I return rectangles that are outside
of the NSView's bounds. In drawRect: I'm fully prepared to draw the page,
but because it's outside of the bounds, drawRect: never gets called for that
page!

I can understand drawRect not getting called for drawing to the screen, but
for printing?

I've tried disabling wantsDefaultClipping, but no dice. For reasons specific
to my code, calling setBounds or creating a new custom NSView don't work
well, ie, would require lots more work.

So is there anyway to convince and NSView it can draw outside of its bounds?

Thanks for your help,
Jeffrey


 _______________________________________________
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: Printing outside of NSView bounds
      • From: "Jeffrey J. Early" <email@hidden>
  • Prev by Date: Re: Newbie: Basic problem with NSTableview
  • Next by Date: Re: Complicated NSSplitView question
  • Previous by thread: Re: Complicated NSSplitView question
  • Next by thread: Re: Printing outside of NSView bounds
  • Index(es):
    • Date
    • Thread