Skip to content

Instantly share code, notes, and snippets.

@christo16
Created January 28, 2011 15:41
Show Gist options
  • Save christo16/800413 to your computer and use it in GitHub Desktop.
Save christo16/800413 to your computer and use it in GitHub Desktop.
AppController.j
/*
* AppController.j
* streams
*
* Created by You on January 28, 2011.
* Copyright 2011, Your Company All rights reserved.
*/
@import <Foundation/CPObject.j>
@import "SidebarController.j"
@implementation AppController : CPObject
{
SidebarController sidebarController @accessors;
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
contentView = [theWindow contentView];
// uncommenting out this line, creates a parse error
//sidebarController = [[SidebarController alloc]init];
[theWindow orderFront:self];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment