Skip to content

Instantly share code, notes, and snippets.

@Alos
Created February 23, 2011 01:11
Show Gist options
  • Save Alos/839797 to your computer and use it in GitHub Desktop.
Save Alos/839797 to your computer and use it in GitHub Desktop.
@import <Foundation/CPObject.j>
@implementation AppController : CPObject
{
CPWindow window; //this "outlet" is connected automatically by the Cib
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
var cib = [[CPCib alloc] initWithContentsOfURL:[[CPBundle mainBundle] pathForResource:@"Nib2CibDemo.cib"]];
}
- (void)awakeFromCib
{
[window setFullBridge:YES];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment