diff -r 6c78cc6bd7a6 -r 4585c74d809c Source/GGBLayer.h --- a/Source/GGBLayer.h Thu Jul 03 17:44:30 2008 -0700 +++ b/Source/GGBLayer.h Tue Jul 08 20:32:52 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