Skip to content

Instantly share code, notes, and snippets.

@tbalthazar
Created January 27, 2009 15:08
Show Gist options
  • Save tbalthazar/53377 to your computer and use it in GitHub Desktop.
Save tbalthazar/53377 to your computer and use it in GitHub Desktop.
@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