some cleaning

This commit is contained in:
Mitchell Livingston
2008-06-17 17:17:15 +00:00
parent 4de77e3d2d
commit 9d5affb0b7
5 changed files with 45 additions and 22 deletions
+15 -15
View File
@@ -41,21 +41,21 @@
- (void) awakeFromNib
{
//back image
fBack = [[NSImage alloc] initWithSize: [self bounds].size];
[fBack lockFocus];
CTGradient * gradient = [CTGradient gradientWithBeginningColor: [NSColor colorWithCalibratedWhite: 0.0 alpha: 0.4]
endingColor: [NSColor colorWithCalibratedWhite: 0.2 alpha: 0.4]];
[gradient fillRect: [self bounds] angle: 90.0];
[fBack unlockFocus];
//store box colors
fGreenAvailabilityColor = [[NSColor colorWithCalibratedRed: 0.0 green: 1.0 blue: 0.4 alpha: 1.0] retain];
fBluePieceColor = [[NSColor colorWithCalibratedRed: 0.0 green: 0.4 blue: 0.8 alpha: 1.0] retain];
//actually draw the box
[self setTorrent: nil];
//back image
fBack = [[NSImage alloc] initWithSize: [self bounds].size];
[fBack lockFocus];
CTGradient * gradient = [CTGradient gradientWithBeginningColor: [NSColor colorWithCalibratedWhite: 0.0 alpha: 0.4]
endingColor: [NSColor colorWithCalibratedWhite: 0.2 alpha: 0.4]];
[gradient fillRect: [self bounds] angle: 90.0];
[fBack unlockFocus];
//store box colors
fGreenAvailabilityColor = [[NSColor colorWithCalibratedRed: 0.0 green: 1.0 blue: 0.4 alpha: 1.0] retain];
fBluePieceColor = [[NSColor colorWithCalibratedRed: 0.0 green: 0.4 blue: 0.8 alpha: 1.0] retain];
//actually draw the box
[self setTorrent: nil];
}
- (void) dealloc