mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-27 05:57:04 +00:00
25 lines
601 B
Plaintext
25 lines
601 B
Plaintext
|
|
import <Foundation/CPObject.j>
|
|
import <AppKit/CPCib.j>
|
|
|
|
|
|
@implementation AppController : CPObject
|
|
{
|
|
}
|
|
|
|
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
|
|
{
|
|
var cib = [[CPCib alloc] initWithContentsOfURL:@"MainMenu.cib"],
|
|
x = [cib instantiateCibWithExternalNameTable:nil];
|
|
|
|
[x setBackgroundColor:[CPColor blueColor]];
|
|
|
|
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
|
|
contentView = [theWindow contentView];
|
|
|
|
[contentView addSubview:x];
|
|
|
|
[theWindow orderFront:self];
|
|
}
|
|
|
|
@end |