Printing outside of NSView bounds
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