Created
April 22, 2010 00:27
-
-
Save boucher/374639 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * AppController.j | |
| * alphaBackgroundBug | |
| * | |
| * Created by Ross Boucher on April 21, 2010. | |
| * Copyright 2010, Your Company All rights reserved. | |
| */ | |
| @import <Foundation/CPObject.j> | |
| @implementation AppController : CPObject | |
| { | |
| } | |
| - (void)applicationDidFinishLaunching:(CPNotification)aNotification | |
| { | |
| var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask], | |
| contentView = [theWindow contentView]; | |
| sizerView = [[CPView alloc] initWithFrame:CGRectMake(0, 0, 300, 300)]; | |
| [sizerView setBackgroundColor:[CPColor colorWithWhite:0 alpha:0.6]]; | |
| [sizerView setAutoresizingMask:CPViewHeightSizable | CPViewWidthSizable ]; | |
| [sizerView setCenter:[contentView center]]; | |
| [contentView addSubview:sizerView]; | |
| sizerView = [[CPView alloc] initWithFrame:CGRectMake(0, 0, 300, 300)]; | |
| [sizerView setBackgroundColor:[CPColor colorWithWhite:0 alpha:0.6]]; | |
| [sizerView setAutoresizingMask:CPViewHeightSizable | CPViewWidthSizable ]; | |
| var center = [contentView center]; | |
| center.x += 50; | |
| center.y += 50; | |
| [sizerView setCenter:center]; | |
| [contentView addSubview:sizerView]; | |
| [theWindow orderFront:self]; | |
| // Uncomment the following line to turn on the standard menu bar. | |
| //[CPMenu setMenuBarVisible:YES]; | |
| } | |
| @end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment