Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (13 sloc) 387 Bytes
#import "TomatoView.h"
@implementation TomatoView
- (void)awakeFromNib {
tomatoImage = [NSImage imageNamed:@"tomato"];
[self setNeedsDisplay:YES];
}
- (void)drawRect:(NSRect)rect {
[[NSColor clearColor] set];
NSRectFill([self frame]);
[tomatoImage compositeToPoint:NSZeroPoint operation:NSCompositeSourceOver];
[[self window] invalidateShadow];
}
@end