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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]