//
//  XTCustomBackgroundColorView.m
//  TadsTerp
//
//  Created by Rune Berg on 26/03/14.
//  Copyright (c) 2014 Rune Berg. All rights reserved.
//

#import "XTCustomBackgroundColorView.h"
#import "XTAllocDeallocCounter.h"


@implementation XTCustomBackgroundColorView

OVERRIDE_ALLOC_FOR_COUNTER
OVERRIDE_DEALLOC_FOR_COUNTER

- (void)drawRect:(NSRect)dirtyRect
{
    [super drawRect:dirtyRect];
    
    if (self.backgroundColor != nil) {
		[self.backgroundColor set];
		NSRectFill([self bounds]);
	}
}

@end
