#import "TestView.h"

@implementation TestView

/*- (id)initWithFrame:(NSRect)frameRect
{
	if ((self = [super initWithFrame:frameRect]) != nil) {
		// Add initialization code here
	}
	return self;
}*/

- (void)awakeFromNib {
    _grooveImage = [[NSImage imageNamed:@"slider_groove"] retain];
    _buttonImage = [[NSImage imageNamed:@"slider_button"] retain];
    [_buttonImage setFlipped:[self isFlipped]];
    [self setNeedsDisplay:YES];
}

- (void)drawRect:(NSRect)rect
{
    [_buttonImage compositeToPoint:rect.origin operation:NSCompositeSourceOver];
}

@end
