Core animation bug?
Core animation bug?
- Subject: Core animation bug?
- From: Henk Kampman <email@hidden>
- Date: Wed, 28 May 2008 20:25:10 +0200
According the the documentaion <http://developer.apple.com/releasenotes/Cocoa/AppKit.html
> bounds, boundsOrigin and boundsSize are animatable properties.
However trying to do something like:
NSRect newBounds = [myView bounds];
newBounds.origin.x += 100;
[[myView animator] setBounds: newBounds]
Will trigger the following exception
[<MyView 0x134f30> valueForUndefinedKey:]: this class is not key value
coding-compliant for the key boundsSize.
Changing the code to:
NSRect newBounds = [myView frame];
newBounds.origin.x += 100;
[[myView animator] setFrame: newBounds]
Does not crash and animates as expected
Is the documentation wrong or is this a bug?
Henk
_______________________________________________
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