Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)applicationDidFinishLaunching:(CPNotification)aNotification
- {
- var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
- contentView = [theWindow contentView];
- var tabs = [[CPTabView alloc] initWithFrame:CPRectMake(200,200, 250, 250)];
- [tabs setFrameOrigin:CGPointMake(200,200)];
- var viewOne = [[CPTabViewItem alloc] initWithIdentifier:11];
- [viewOne setLabel:@"Campaigns"];
- var text = [[CPTextField alloc] initWithFrame:CPRectMake(0,0,50,18)];
- [text setStringValue:@"hello"];
- [viewOne setView:text];
- [tabs addTabViewItem:viewOne];
- [contentView addSubview:tabs];
- [theWindow orderFront:self];
- // Uncomment the following line to turn on the standard menu bar.
- //[CPMenu setMenuBarVisible:YES];
- }
Add Comment
Please, Sign In to add comment