Created
January 27, 2009 15:08
-
-
Save tbalthazar/53377 to your computer and use it in GitHub Desktop.
This file contains 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
@import <Foundation/CPObject.j> | |
@implementation AppController : CPObject | |
{ | |
} | |
- (void)applicationDidFinishLaunching: (CPNotification)aNotification | |
{ | |
var myWindow = [[CPWindow alloc] initWithContentRect: CGRectMake(50,50,350, 250) | |
styleMask: CPTitledWindowMask | CPClosableWindowMask | CPMiniaturizableWindowMask | CPResizableWindowMask]; | |
[myWindow setShowsResizeIndicator:YES] ; | |
[myWindow setTitle:@"My Window Title"] ; | |
[[myWindow contentView] setBackgroundColor: [CPColor grayColor]]; | |
[myWindow orderFront: self]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment