mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-04 01:43:40 +00:00
22 lines
509 B
Plaintext
22 lines
509 B
Plaintext
|
|
@import <Foundation/CPObject.j>
|
|
@import <AppKit/CPCib.j>
|
|
|
|
|
|
@implementation AppController : CPObject
|
|
{
|
|
CPWindow _window;
|
|
}
|
|
|
|
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
|
|
{
|
|
var cib = [[CPCib alloc] initWithContentsOfURL:[[CPBundle mainBundle] pathForResource:@"MainMenu.cib"]];
|
|
|
|
[cib instantiateCibWithExternalNameTable:[CPDictionary dictionaryWithObject:self forKey:CPCibOwner]];
|
|
|
|
[_window setFrameOrigin:CGPointMake(0.0, 0.0)];
|
|
[_window orderFront:self];
|
|
}
|
|
|
|
@end
|