• 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
Re: NSAmimatablePropertyContainer property animation troubles...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAmimatablePropertyContainer property animation troubles...


  • Subject: Re: NSAmimatablePropertyContainer property animation troubles...
  • From: Troy Stephens <email@hidden>
  • Date: Thu, 1 Nov 2007 14:04:58 -0700

Hi Bill,

Animation of NSColor properties isn't supported yet; that's why your code isn't being asked to provide an animation to use.

As an alternative, you could drive a float or double typed property using an animation, and vary the color you use in response to changes in that property.

Troy

On Nov 1, 2007, at 1:41 PM, Bill Dudney wrote:

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:
This email sent to email@hidden

_______________________________________________

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


  • Follow-Ups:
    • Re: NSAmimatablePropertyContainer property animation troubles...
      • From: Bill Dudney <email@hidden>
References: 
 >NSAmimatablePropertyContainer property animation troubles... (From: Bill Dudney <email@hidden>)

  • Prev by Date: Re: When to use key-value coding to get values vs. accessors
  • Next by Date: Re: [Leopard] GM Build Number?
  • Previous by thread: NSAmimatablePropertyContainer property animation troubles...
  • Next by thread: Re: NSAmimatablePropertyContainer property animation troubles...
  • Index(es):
    • Date
    • Thread