Guest User

Untitled

a guest
Oct 22nd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. /*
  2. * AppController.j
  3. * FileView
  4. *
  5. * Created by Sheehan Alam on June 28, 2011.
  6. * Copyright 2011, StockTwits Inc. All rights reserved.
  7. */
  8.  
  9. @import <Foundation/CPObject.j>
  10. @import "FinderWindow.j"
  11. @import "FinderWindowController.j"
  12.  
  13. @implementation AppController : CPObject
  14. {
  15. FinderWindowController finderWindowController;
  16. FinderWindow finderWindow;
  17. }
  18.  
  19. - (void)applicationDidFinishLaunching:(CPNotification)aNotification
  20. {
  21. var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
  22. contentView = [theWindow contentView];
  23.  
  24. [theWindow orderFront:self];
  25.  
  26. [self showFinderWindow];
  27. }
  28.  
  29. -(void)showFinderWindow
  30. {
  31. finderWindow = [[FinderWindow alloc] initWithRect:CGRectMake(0,0,50,50) style:CPResizableWindowMask];
  32. [finderWindow center];
  33. finderWindowController = [[FinderWindowController alloc] initWithWindow:finderWindow];
  34. [finderWindowController showWindow:nil];
  35. }
  36.  
  37. @end
Add Comment
Please, Sign In to add comment