Re: CALayer and View controls

2008-11-14 Thread David Duncan
On Nov 14, 2008, at 9:12 AM, Fabrizio Guglielmino wrote: Sorry but I forgot to say my application is for iPhone so I don't need setWantsLayer:YES, I don't think this make the difference, right? Layers are always on on iPhone, so yes it makes no difference here. So, if I understand, I can mak

Re: CALayer and View controls

2008-11-14 Thread Fabrizio Guglielmino
2008/11/14 David Duncan <[EMAIL PROTECTED]>: > On Nov 14, 2008, at 8:10 AM, Fabrizio Guglielmino wrote: > >> in some previous posts I was looking for information about CALayer >> rotation and now I can rotate layer using core animation. >> This mail it's about a strange behaviour, in my simple test

Re: CALayer and View controls

2008-11-14 Thread David Duncan
On Nov 14, 2008, at 8:10 AM, Fabrizio Guglielmino wrote: in some previous posts I was looking for information about CALayer rotation and now I can rotate layer using core animation. This mail it's about a strange behaviour, in my simple test I have a single View and a little image loaded as cont

CALayer and View

2008-11-14 Thread Fabrizio Guglielmino
Hi all, in some previous posts I was looking for information about CALayer rotation and now I can rotate layer using core animation. This mail it's about a strange behaviour, in my simple test I have a single View and a little image loaded as content of main layer. in the bottom of View there is a

CALayer and View controls

2008-11-14 Thread Fabrizio Guglielmino
Hi all, in some previous posts I was looking for information about CALayer rotation and now I can rotate layer using core animation. This mail it's about a strange behaviour, in my simple test I have a single View and a little image loaded as content of main layer. in the bottom of View there is a

Re: CALayer and View Scaling

2008-06-29 Thread Scott Anguish
On Jun 29, 2008, at 11:25 PM, Gordon Apple wrote: BTW, I tried unsuccessfully to observe the clip view's bounds to trigger code to resize the CALayers. Why can't I observe it? I finally set an observer on the scale factor in SKTZoomingScrollView. because the bounds value of views ar

Re: CALayer and View Scaling

2008-06-29 Thread Graham Cox
I'm not familiar with SKTZoomingScrollView but I do wonder why its author wrote it that way, when to get zooming you can simply use the actual view's -scaleUnitSquareToSize: method (plus frame computation), and any enclosing clipview/scrollview does the right thing without any work at all.

CALayer and View Scaling

2008-06-29 Thread Gordon Apple
Apparently, there is a disconnect between the view's coordinate system context and that of the contained CALayers. I'm using Sketch's SKTZoomingScrollView to set the scale factor of my main drawing view. It works great without CALayers. What is does is it scales the bounds of the containing