Guest User

Untitled

a guest
Feb 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. - (void)applicationDidFinishLaunching:(CPNotification)aNotification
  2. {
  3. var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
  4. contentView = [theWindow contentView];
  5.  
  6. var tabs = [[CPTabView alloc] initWithFrame:CPRectMake(200,200, 250, 250)];
  7. [tabs setFrameOrigin:CGPointMake(200,200)];
  8.  
  9. var viewOne = [[CPTabViewItem alloc] initWithIdentifier:11];
  10. [viewOne setLabel:@"Campaigns"];
  11. var text = [[CPTextField alloc] initWithFrame:CPRectMake(0,0,50,18)];
  12. [text setStringValue:@"hello"];
  13. [viewOne setView:text];
  14.  
  15. [tabs addTabViewItem:viewOne];
  16. [contentView addSubview:tabs];
  17.  
  18.  
  19.  
  20.  
  21. [theWindow orderFront:self];
  22.  
  23. // Uncomment the following line to turn on the standard menu bar.
  24. //[CPMenu setMenuBarVisible:YES];
  25. }
Add Comment
Please, Sign In to add comment