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

Re: Printing layer-based view


  • Subject: Re: Printing layer-based view
  • From: Graham Cox <email@hidden>
  • Date: Tue, 08 Jan 2013 21:19:29 +1100

Wow, thanks.... that looks like a lot of work (for you,  or someone...)

But I find I can just call -renderInContext on the view's root layer and I get what I need, apparently. Is there something I'm missing?



--Graham






On 08/01/2013, at 5:27 PM, Kyle Sluder <email@hidden> wrote:

> On Mon, Jan 7, 2013, at 09:51 PM, Graham Cox wrote:
>> Hi all,
>>
>> How can I print a view whose content is solely based on CALayers? When I
>> attempt it, my view's -drawRect: method is called instead, which does not
>> render the layer-based content.
>
> You have to completely reimplement the parts of the Core Animation
> rendering model that are relevant for printing in your case.
>
> Our implementation is part of our public frameworks:
> https://github.com/omnigroup/OmniGroup/blob/master/Frameworks/OmniQuartz/CALayer-OQExtensions.m#L583
>
> --Kyle Sluder


_______________________________________________

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 layer-based view
      • From: Kyle Sluder <email@hidden>
References: 
 >Printing layer-based view (From: Graham Cox <email@hidden>)
 >Re: Printing layer-based view (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: PDFView drawPage called often after selecting text
  • Next by Date: Re: PDFView drawPage called often after selecting text
  • Previous by thread: Re: Printing layer-based view
  • Next by thread: Re: Printing layer-based view
  • Index(es):
    • Date
    • Thread