Created
October 25, 2008 09:08
-
-
Save tlrobinson/19722 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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