Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSAmimatablePropertyContainer property animation troubles...



The release notes on NSAmimatablePropertyContainer protocol give an example like this;

@implementation MyView
+ (id)defaultAnimationForKey:(NSString *)key {
    if ([key isEqualToString:@"borderColor"]) {
        // By default, animate border color changes with simple linear interpolation to the new color value.
        return [CABasicAnimation animation];
    } else {
        // Defer to super's implementation for any keys we don't specifically handle.
        return [super defaultAnimationForKeyKey:key];
    }
}
@end

But I don't see the search for animations being performed on properties that are not part of the primitives (double, float, NSPoint, NSSize or NSRect). I have two properties on my NSView one is float and does get animated, the other is an NSColor and the defaultAnimationForKey: never gets called for this property.

Anyone else had a chance to mess with this api yet and seen the same thing?

Thanks,

-bd-
http://bill.dudney.net/roller/objc
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.