Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

63 lines (52 sloc) 1.13 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
//{
// [super dealloc];
//}
- (void)keyDown:(NSEvent *)theEvent{
// NSLog(@"keydownCV");
[[NSApp delegate] resetModTimers];
[super keyDown:theEvent];
// [super interpretKeyEvents:[NSArray arrayWithObject:theEvent]];
}
- (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.