1.1 --- a/Source/GGBLayer.m Mon Mar 10 17:30:57 2008 -0700
1.2 +++ b/Source/GGBLayer.m Tue Mar 11 17:09:50 2008 -0700
1.3 @@ -19,6 +19,17 @@
1.4 }
1.5
1.6
1.7 +- (void) redisplayAll
1.8 +{
1.9 + [self setNeedsDisplay];
1.10 + for( CALayer *layer in self.sublayers )
1.11 + if( [layer isKindOfClass: [GGBLayer class]] )
1.12 + ((GGBLayer*)layer).redisplayAll;
1.13 + else
1.14 + [layer setNeedsDisplay];
1.15 +}
1.16 +
1.17 +
1.18 #if TARGET_OS_ASPEN
1.19
1.20 #pragma mark -
1.21 @@ -57,7 +68,6 @@
1.22 clone.cornerRadius = self.cornerRadius;
1.23 clone.borderWidth = self.borderWidth;
1.24 clone.borderColor = self.borderColor;
1.25 - clone.autoresizingMask = self.autoresizingMask;
1.26
1.27 for( GGBLayer *sublayer in self.sublayers ) {
1.28 sublayer = [sublayer copyWithZone: zone];
1.29 @@ -67,8 +77,6 @@
1.30 }
1.31
1.32
1.33 -@synthesize autoresizingMask=_autoresizingMask;
1.34 -
1.35 - (CGFloat) cornerRadius {return _cornerRadius;}
1.36 - (CGFloat) borderWidth {return _borderWidth;}
1.37 - (CGColorRef) borderColor {return _borderColor;}
1.38 @@ -115,6 +123,8 @@
1.39
1.40 - (void)drawInContext:(CGContextRef)ctx
1.41 {
1.42 + [super drawInContext: ctx];
1.43 +
1.44 CGContextSaveGState(ctx);
1.45
1.46 if( _realBGColor ) {