• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core animation bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: NSPredicate containing contains
  • Next by Date: Re: Repost: NSAlert beeping
  • Previous by thread: Re: NSPredicate containing contains
  • Next by thread: Mount Point
  • Index(es):
    • Date
    • Thread