Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

57 lines (47 sloc) 0.945 kb
//
// 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
Jump to Line
Something went wrong with that request. Please try again.