Re: animation keys
Re: animation keys
- Subject: Re: animation keys
- From: Ashley Clark <email@hidden>
- Date: Fri, 30 Jan 2009 20:07:07 -0600
On Jan 30, 2009, at 2:03 PM, Matt Neuburg wrote:
This is a documentation question, really. So, it turns out that when
you
call replaceSubview: through an animator proxy, the @"subviews"
animation is
triggered. You can modify what happens during replaceSubview: by
adding your
own animation to a view's dictionary under the key @"subviews".
My question is: how would I find this out? I mean, I can guess that
setFrameRotation: might trigger the @"frameRotation" animation, but
I would
never have guessed this one. So where can I find a list of what
actions
trigger what animation keys? Thx - m.
According to the comments in NSAnimation.h the key should usually be
the property of the receiver that is changing. But I think when I
looked at it last that this wasn't always the case. Specifically I
found that a setFrame: method did not use a "frame" key but instead
used two animations to accomplish its effect, "frameOrigin" and
"frameSize". I found that purely by trial and error and I'd love to
know if there's some list of other edge cases like that.
Ashley
_______________________________________________
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