Re: More CALayer Questions
Re: More CALayer Questions
- Subject: Re: More CALayer Questions
- From: "douglas a. welton" <email@hidden>
- Date: Mon, 7 Jul 2008 18:57:43 -0400
Hi Gordon,
I'm not sure what you really want to do is -removeAllAnimations. I
suspect that you probably want to temporarily disable animation within
the scope of a CATransaction. Take a look at the code found here:
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/Transactions.html#//apple_ref/doc/uid/TP40006096-SW9
>
later,
douglas
On Jul 7, 2008, at 6:05 PM, Gordon Apple wrote:
OK, a little update. Through watching a number of parameters, a
lot of
experimentation, and probably blind a** luck, I've managed to get
rescaling
to sort of work. However, to do editing of objects (e.g., dragging
them
around), I had to call "removeAllAnimations". When I change the
scale, the
scale does change, but the layer does not change to the correct
position
until I resize the window -- then it snaps into correct position.
Resizing
the window results in the drawing disappearing and reappearing, mostly
reappearing when downsizing. It also disappears when scrolled,
until the
window is resized. I assume this has something to do with re-caching
the
layer. How do I fix that?
I need to get this working right before I go back to stacking
layers.
BTW, I've preordered (July 17) the upcoming book on animation,
but I
have no idea whether or not it will have anything useful for these
CALayer
issues.
I'm suffering from extreme frustration with CALayers. I obviously
don't
understand the documentation available and there is a lot that is not
documented, especially since the Views guide has not been updated
to include
CALayers. Also, as others have observed, the "flipped" paremeter in
[NSGraphicsContext graphicsContextWithGraphicsPort:ctx flipped:YES]
simply
does not work.
.......
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden