Re: Core Animation. issue with scaling

2010-08-23 Thread Eric Wing
I'm not sure how you are detecting touches now, but you should look at using CALayer's hitTest: method to determine if/what layer was clicked/touched. If the animation is still moving, you definitely need to be querying the presentationLayer and not the modelLayer. I am detecting touches in

Re: Core Animation. issue with scaling

2010-08-22 Thread Ahsan Shafiq
On Sat, Aug 21, 2010 at 5:32 PM, Eric Wing ewmail...@gmail.com wrote: On 8/21/10, Ahsan Shafiq ahsan.shafiq...@gmail.com wrote: Yes, you are right but now I am unable to handle touches. As I said in my previous post, I also want to update the model. Simply scaling as you mentioned does

Re: Core Animation. issue with scaling

2010-08-21 Thread Ahsan Shafiq
Yes, you are right but now I am unable to handle touches. As I said in my previous post, I also want to update the model. Simply scaling as you mentioned does scale down or scale up the sublayers as well but how to update the model. In Scaling both the position and bounds get changed!! and after

Re: Core Animation. issue with scaling

2010-08-21 Thread Eric Wing
On 8/21/10, Ahsan Shafiq ahsan.shafiq...@gmail.com wrote: Yes, you are right but now I am unable to handle touches. As I said in my previous post, I also want to update the model. Simply scaling as you mentioned does scale down or scale up the sublayers as well but how to update the model. In

Re: Core Animation. issue with scaling

2010-08-20 Thread Ahsan Shafiq
bump* On Thu, Aug 19, 2010 at 10:47 AM, Ahsan Shafiq ahsan.shafiq...@gmail.comwrote: Hi I have read that in explicit animation, say translation, to really change the model layer position we have to change it's position too. So here is my code: CABasicAnimation *animation =

Re: Core Animation. issue with scaling

2010-08-20 Thread Eric Wing
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@bounds]; CGRect orgVal = CGRectMake(0, 0, firstWheelLayer.bounds.size.width, firstWheelLayer.bounds.size.height); CGRect newVal = CGRectMake(0, 0,

Core Animation. issue with scaling

2010-08-19 Thread Ahsan Shafiq
Hi I have read that in explicit animation, say translation, to really change the model layer position we have to change it's position too. So here is my code: CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@position]; CGPoint pt =