• 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 a layer-backed view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing a layer-backed view


  • Subject: Re: Printing a layer-backed view
  • From: Troy Stephens <email@hidden>
  • Date: Fri, 4 Jan 2008 09:56:30 -0800

On Jan 4, 2008, at 2:27 AM, Timothy J. Wood wrote:
I'm hoping that this is possible, but so far it seems like NSView's that are layer-backed don't print (not even a bitmap!)

Tell me I'm wrong and we haven't stepped back into the dark ages... =)

-tim

Hi Tim,

Sorry to say there is indeed a bug that causes the views' drawing to be redirected to their backing layers, even though the views are being asked to draw for the purpose of printing.

Ways this can be worked around:

(1) temporarily switch off layer-backing of the view (or view hierarchy) during printing, or

(2) print from an identically configured offscreen view (or hierarchy) that isn't layer-backed, or

(3) if your views are employing visual effects that only work in layer- backed mode (effects that are rendered by Core Animation: view filters, shadows, alpha) and you need those same effects to appear in the printed output, use a CARenderer to render the layer tree to bitmapped form, then print the bitmap.

I'll see about fixing this. In the meantime, I hope the above will help get you un-stuck.

Regards,
Troy


-- Troy Stephens Cocoa Frameworks Apple, Inc.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Printing a layer-backed view
      • From: "Timothy J. Wood" <email@hidden>
References: 
 >Printing a layer-backed view (From: "Timothy J. Wood" <email@hidden>)

  • Prev by Date: Re: Printing a layer-backed view
  • Next by Date: Re: Circular initialization of controllers in NIB file
  • Previous by thread: Re: Printing a layer-backed view
  • Next by thread: Re: Printing a layer-backed view
  • Index(es):
    • Date
    • Thread