diff -r 6c78cc6bd7a6 -r db7bb080c3d5 Source/GGBLayer.h --- a/Source/GGBLayer.h Thu Jul 03 17:44:30 2008 -0700 +++ b/Source/GGBLayer.h Tue Jul 08 13:12:01 2008 -0700 @@ -14,9 +14,13 @@ #endif +extern NSString* const GGBLayerStyleChangedNotification; + + @interface GGBLayer : CALayer { CABasicAnimation *_curAnimation; + NSMutableDictionary *_styleDict; #if ! TARGET_OS_IPHONE } @@ -35,6 +39,10 @@ - (void) animateAndBlock: (NSString*)keyPath from: (id)from to: (id)to duration: (NSTimeInterval)duration; +/** Change a property in this layer's 'style' dictionary (if it has one), + and update every other layer that shares the same style dictionary. */ +- (void) setValue: (id)value ofStyleProperty: (NSString*)prop; + @end