Skip to content

Instantly share code, notes, and snippets.

@tlrobinson
Created October 25, 2008 09:08
Show Gist options
  • Save tlrobinson/19722 to your computer and use it in GitHub Desktop.
Save tlrobinson/19722 to your computer and use it in GitHub Desktop.
import <Foundation/CPObject.j>
import "DraggableItemView.j"
@implementation AppController : CPObject
{
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero()styleMask:CPBorderlessBridgeWindowMask];
var contentView = [theWindow contentView];
var view = [[DraggableItemView alloc] initWithFrame:CGRectMake(0, 0, 800, 800)];
[contentView addSubview:view];
[theWindow orderFront:self];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment