<?xml version="1.0"?>
<paste-with-annotations>
  <paste>
    <number>
      <integer>96700</integer>
    </number>
    <user>
      <string>dcope</string>
    </user>
    <title>
      <string>untitled</string>
    </title>
    <contents>
      <string>- (id)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        // Initialization code
		[[self layer] insertSublayer:[self gradientAsInverse:NO] atIndex:0];
    }
    return self;
}

- (CAGradientLayer *)gradientAsInverse:(BOOL)inverse {
	CAGradientLayer *gradientLayer = [[CAGradientLayer alloc] init];
	
	CGFloat lightColor = 251.0f / 255.0f;
	CGFloat darkColor = 201.0f / 255.0f;
	
	CGColorRef lightColorRef = [[UIColor colorWithRed:lightColor green:lightColor blue:lightColor alpha:1.0f] CGColor];
	CGColorRef darkColorRef = [[UIColor colorWithRed:darkColor green:darkColor blue:darkColor alpha:1.0f] CGColor];
	
	[gradientLayer setFrame:[self frame]];
	[gradientLayer setColors:[NSArray arrayWithObjects:(id)(inverse ? darkColorRef : lightColorRef), (id)(inverse ? lightColorRef : darkColorRef), nil]];
	
	return [gradientLayer autorelease];
}</string>
    </contents>
    <universal-time>
      <integer>3478131847</integer>
    </universal-time>
    <channel>
      <string>#macdev</string>
    </channel>
    <colorization-mode>
      <string>Objective C</string>
    </colorization-mode>
    <maybe-spam>
      <null/>
    </maybe-spam>
    <is-unicode>
      <keyword>TRUE</keyword>
    </is-unicode>
    <deletion-requested>
      <null/>
    </deletion-requested>
    <deletion-requested-email>
      <null/>
    </deletion-requested-email>
    <expiration-time>
      <null/>
    </expiration-time>
  </paste>
</paste-with-annotations>
