/*
 * AppController.j
 * test
 *
 * Created by __Me__ on __Date__.
 * Copyright 2008 __MyCompanyName__. All rights reserved.
 */

@import <Foundation/CPObject.j>


@import "GradientView.j"

@implementation AppController : CPObject
{
	DotView gradientView;
}

- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
    var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask];
    var contentView = [theWindow contentView];
    var bounds = [contentView bounds];

	gradientView = [[GradientView alloc] initWithFrame:CGRectMake(10, 10, CPRectGetWidth(bounds) - 20, CPRectGetHeight(bounds) - 20)];

    [gradientView setAutoresizingMask:CPViewHeightSizable | CPViewWidthSizable];
    [contentView addSubview:gradientView];

    [theWindow orderFront:self];
}

@end
