Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 46 lines (35 sloc) 0.688 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
//
// BackgroundColorView.m
// CloudPost
//
// Created by Christian Stropp on 29.07.09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "BackgroundColorView.h"


@implementation BackgroundColorView

@synthesize backgroundColor;

- (id)initWithFrame:(NSRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self setBackgroundColor:[NSColor colorWithDeviceRed:1.0 green:1.0 blue:1.0 alpha:1.0]];
    }
    return self;
}

- (void)drawRect:(NSRect)rect
{
[backgroundColor set];
NSRectFill(rect);
}

- (void)dealloc
{
[super dealloc];
}

- (BOOL)acceptsFirstResponder
{
return YES;
}

- (BOOL)mouseDownCanMoveWindow
{
return NO;
}

@end
Something went wrong with that request. Please try again.