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

Re: Printing outside of NSView bounds


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

Of course as soon as I send this I figure out a solution.

I just set the frameRect of the view, print, and then set it back. Seems to
work alright and the user doesn't see anything happen.

Jeffrey

on 9/3/06 4:15 PM, Jeffrey J. Early at email@hidden wrote:

> 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


 _______________________________________________
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

References: 
 >Printing outside of NSView bounds (From: "Jeffrey J. Early" <email@hidden>)

  • Prev by Date: Re: Complicated NSSplitView question
  • Next by Date: Multiline NSTextField
  • Previous by thread: Printing outside of NSView bounds
  • Next by thread: Multiline NSTextField
  • Index(es):
    • Date
    • Thread