Permalink
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (47 sloc) 945 Bytes
//
// ETContentView.m
// Notation
//
// Created by elasticthreads on 3/15/11.
//
#import "ETContentView.h"
#import "AppController.h"
@implementation ETContentView
//- (id)initWithFrame:(NSRect)frame
//{
// self = [super initWithFrame:frame];
// if (self) {
// // Initialization code here.
// }
//
// return self;
//}
//
- (void)dealloc
{
[backColor release];
[super dealloc];
}
- (void)drawRect:(NSRect)dirtyRect
{
// [super drawRect:dirtyRect];
if (!backColor) {
backColor = [[[NSApp delegate] backgrndColor] retain];
}
[backColor set];
NSRectFill([self bounds]);
}
- (void)setBackgroundColor:(NSColor *)inCol{
if (backColor) {
[backColor release];
}
backColor = inCol;
[backColor retain];
}
- (NSColor *)backgroundColor{
if (!backColor) {
backColor = [[[NSApp delegate] backgrndColor] retain];
}
return backColor;
}
@end