Re: Printing layer-based view

2013-01-08 Thread David Duncan
On Jan 8, 2013, at 3:34 PM, Graham Cox wrote: > On 09/01/2013, at 2:20 AM, Kyle Sluder wrote: > >> That'll generate huge 72dpi bitmaps rather than a vector representation. > > But it doesn't > > The layers that are CAShapeLayers render as vectors, and no amount of zooming > in Preview sh

Re: Printing layer-based view

2013-01-08 Thread Graham Cox
On 09/01/2013, at 2:20 AM, Kyle Sluder wrote: > That'll generate huge 72dpi bitmaps rather than a vector representation. But it doesn't The layers that are CAShapeLayers render as vectors, and no amount of zooming in Preview shows any pixelation. Other layers, such as CATextLayer, do pi

Re: Printing layer-based view

2013-01-08 Thread Kyle Sluder
On Jan 8, 2013, at 2:19 AM, Graham Cox wrote: > 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? That'll generate huge 72dpi bitm

Re: Printing layer-based view

2013-01-08 Thread Graham Cox
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 wrote: > On Mon, Jan 7, 2013,

Re: Printing layer-based view

2013-01-07 Thread Kyle Sluder
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

Printing layer-based view

2013-01-07 Thread Graham Cox
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. --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c