diff -r 3eb7be1dd7b6 -r d781b00f3ed4 Source/GGBLayer.m --- a/Source/GGBLayer.m Mon Mar 10 17:30:57 2008 -0700 +++ b/Source/GGBLayer.m Tue Mar 11 17:09:50 2008 -0700 @@ -19,6 +19,17 @@ } +- (void) redisplayAll +{ + [self setNeedsDisplay]; + for( CALayer *layer in self.sublayers ) + if( [layer isKindOfClass: [GGBLayer class]] ) + ((GGBLayer*)layer).redisplayAll; + else + [layer setNeedsDisplay]; +} + + #if TARGET_OS_ASPEN #pragma mark - @@ -57,7 +68,6 @@ clone.cornerRadius = self.cornerRadius; clone.borderWidth = self.borderWidth; clone.borderColor = self.borderColor; - clone.autoresizingMask = self.autoresizingMask; for( GGBLayer *sublayer in self.sublayers ) { sublayer = [sublayer copyWithZone: zone]; @@ -67,8 +77,6 @@ } -@synthesize autoresizingMask=_autoresizingMask; - - (CGFloat) cornerRadius {return _cornerRadius;} - (CGFloat) borderWidth {return _borderWidth;} - (CGColorRef) borderColor {return _borderColor;} @@ -115,6 +123,8 @@ - (void)drawInContext:(CGContextRef)ctx { + [super drawInContext: ctx]; + CGContextSaveGState(ctx); if( _realBGColor ) {