Re: problems with CAAnimation - SOLVED (kinda)

2009-03-20 Thread Graham Cox
On 20/03/2009, at 10:39 AM, mm w wrote: your design simply sucks, you don't understand the library I cannot help you on this, I am not Jesus and I cannot save all people who are pretending to program, once again I did complex design with CA related API, and I have never been stuck in this

Re: problems with CAAnimation - SOLVED (kinda)

2009-03-19 Thread mm w
your design simply sucks, you don't understand the library I cannot help you on this, I am not Jesus and I cannot save all people who are pretending to program, once again I did complex design with CA related API, and I have never been stuck in this kind of issue, so I let you think, nobody can so

Re: problems with CAAnimation - SOLVED (kinda)

2009-03-19 Thread mm w
you should really create a html page and play for instance with jQuery to understand how those mechanisms/API have been designed, and when you will understand what you are doing you will welcome to come again Cheers! On Thu, Mar 19, 2009 at 3:26 PM, Memo Akten wrote: > Hi Matt, thanks for lengt

Re: problems with CAAnimation - SOLVED (kinda)

2009-03-19 Thread Memo Akten
lol, thank you very much! you couldn't help with the problem directly, but at least you put a smile on my face :) On 19 Mar 2009, at 23:39, mm w wrote: your design simply sucks, you don't understand the library I cannot help you on this, I am not Jesus and I cannot save all people who are

Re: problems with CAAnimation - SOLVED (kinda)

2009-03-19 Thread Memo Akten
Hi, I've used jQuery, but I don't understand the relevance or what you mean? On 19 Mar 2009, at 22:30, mm w wrote: you should really create a html page and play for instance with jQuery to understand how those mechanisms/API have been designed, and when you will understand what you are doi

Re: problems with CAAnimation - SOLVED (kinda)

2009-03-19 Thread Memo Akten
Hi Matt, thanks for lengthy reply. At this point, I"ve only tried the first part, and I cannot get it to use the time I'm supplying in the animation, basically its just doing an implicit animation not explicit. It doesn't matter whether I setValue before or after the addAnimation. Actuall

Re: problems with CAAnimation

2009-03-19 Thread Benjamin Stiglitz
> - if I rollover, then midanimation, rollout again, it should animate > back to original position *from where it was at the moment I rolled > out*, NOT snapping to the hover position (which is why I can't use > FromValues). You can use the layer's presentationLayer to get the info you need

Re: problems with CAAnimation

2009-03-19 Thread Matt Long
I'll address the issue with the animation ignoring your duration first. Try placing your addAnimation call before the setValue:forKeyPath. Let me know if that works. Also, you will *need* to specify a fromValue in your animation. If you want the current value (in the case where an animation

Re: problems with CAAnimation

2009-03-19 Thread Memo Akten
Hi Matt, yea it is a bit complex, but it seems to me that what I am trying to do is actually quite simple: - when I rollover a layer, it animates position, scale, rotation and alpha. - when I rollout, it animates back. - if I rollover, then midanimation, rollout again, it should animate ba

Re: problems with CAAnimation

2009-03-19 Thread Matt Long
Ok. You've just raised the bar! ;-) Seems that you would have to specify the key path you're wanting for each animation which leads me to think you won't be able to use grouping as you envision as setAnimations on the CAAnimationGroup only takes an array rather than a dictionary in which yo

Re: problems with CAAnimation

2009-03-19 Thread Memo Akten
Hi Matt, thanks for the answer and yes you are right on both fronts: - if I use fillMode and removeOnCompletion then it is visibly sticky, BUT when I apply another animation (e.g. shrinkAnimation which scales To:1, without setting a From value) then it snaps straight back to 1, probably bec

Re: problems with CAAnimation

2009-03-19 Thread Matt Long
Your layer's transform.scale knows nothing of the toValue in the animation. You have to explicitly set it in the layer in addition to animating it. This also means that you need to add the animation using the correct keypath otherwise it will use the default animation instead of yours. Chan