Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * AppController.j
- * FileView
- *
- * Created by Sheehan Alam on June 28, 2011.
- * Copyright 2011, StockTwits Inc. All rights reserved.
- */
- @import <Foundation/CPObject.j>
- @import "FinderWindow.j"
- @import "FinderWindowController.j"
- @implementation AppController : CPObject
- {
- FinderWindowController finderWindowController;
- FinderWindow finderWindow;
- }
- - (void)applicationDidFinishLaunching:(CPNotification)aNotification
- {
- var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
- contentView = [theWindow contentView];
- [theWindow orderFront:self];
- [self showFinderWindow];
- }
- -(void)showFinderWindow
- {
- finderWindow = [[FinderWindow alloc] initWithRect:CGRectMake(0,0,50,50) style:CPResizableWindowMask];
- [finderWindow center];
- finderWindowController = [[FinderWindowController alloc] initWithWindow:finderWindow];
- [finderWindowController showWindow:nil];
- }
- @end
Add Comment
Please, Sign In to add comment