Re: Printing layer-based view
Re: Printing layer-based view
- Subject: Re: Printing layer-based view
- From: Kyle Sluder <email@hidden>
- Date: Mon, 07 Jan 2013 22:27:31 -0800
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