Re: CALayers - printing and flippedness

2010-09-14 Thread Gideon King
Thanks Scott, but I also tried with the layer being owned by the view, and nothing printed when I tried to print the view. I took it right back to a simple form where it just creates the layer and paints it red - works on screen but still doesn't print. - (void)awakeFromNib { CALayer *m

Re: CALayers - printing and flippedness

2010-09-14 Thread Gideon King
Absolutely brilliant, thanks Kyle - downloading it now... Gideon On 15/09/2010, at 4:08 AM, Kyle Sluder wrote: > On Tue, Sep 14, 2010 at 10:12 AM, Gideon King wrote: >> I have done some performance testing and it appears that I'll need to go the >> route of pure layers for most of it (the ani

Re: CALayers - printing and flippedness

2010-09-14 Thread Matt Neuburg
On or about 9/14/10 10:12 AM, thus spake "Gideon King" : > I'm a little surprised about your statement that there is going to have to be > a completely separate codebase for Mac and iOS. I would have thought that if I > stick to the core graphics / quartz 2D drawing, that it would be reusable. Yo

Re: CALayers - printing and flippedness

2010-09-14 Thread Kyle Sluder
On Tue, Sep 14, 2010 at 10:12 AM, Gideon King wrote: > I have done some performance testing and it appears that I'll need to go the > route of pure layers for most of it (the animation got a bit jerky with 1,000 > layer backed views), but I guess I'll be able to factor out the drawing code > an

Re: CALayers - printing and flippedness

2010-09-14 Thread Gideon King
Thanks Matt - I was beginning to suspect that might be the case, but was hoping that there might be some workaround where I could get at the drawn content. I have done some performance testing and it appears that I'll need to go the route of pure layers for most of it (the animation got a bit je

Re: CALayers - printing and flippedness

2010-09-14 Thread Matt Neuburg
On Tue, 14 Sep 2010 10:31:39 +1000, Gideon King said: >The first is that I am trying to make sure that I will be able to print what I have on my view, but this doesn't seem to be working. I tried creating a layer backed view, which in its drawRect: method fills the rect with red, and added a sub-

Re: CALayers - printing and flippedness

2010-09-14 Thread Gideon King
Thanks Scott, but I also tried with the layer being owned by the view, and nothing printed when I tried to print the view. I took it right back to a simple form where it just creates the layer and paints it red - works on screen but still doesn't print. - (void)awakeFromNib { CALayer *m

Re: CALayers - printing and flippedness

2010-09-13 Thread Scott Anguish
On Sep 13, 2010, at 8:31 PM, Gideon King wrote: > HI, I'm just getting started with some core animation work, and have run into > a couple of issues pretty much straight away. > > The first is that I am trying to make sure that I will be able to print what > I have on my view, but this doesn'

CALayers - printing and flippedness

2010-09-13 Thread Gideon King
HI, I'm just getting started with some core animation work, and have run into a couple of issues pretty much straight away. The first is that I am trying to make sure that I will be able to print what I have on my view, but this doesn't seem to be working. I tried creating a layer backed view,