Created
June 6, 2009 04:12
-
-
Save chandlerkent/124686 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
// Test case for the issue: http://github.com/280north/cappuccino/issues/#issue/192 | |
/* | |
* AppController.j | |
* NewApplication | |
* | |
* Created by You on May 21, 2009. | |
* Copyright 2009, Your Company All rights reserved. | |
*/ | |
@import <Foundation/CPObject.j> | |
@implementation AppController : CPObject | |
{ | |
} | |
- (void)applicationDidFinishLaunching:(CPNotification)aNotification | |
{ | |
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask]; | |
contentView = [theWindow contentView]; | |
var popupButton = [[CPPopUpButton alloc] initWithFrame:CGRectMake(0, 0, 80, 24) pullsDown:YES]; | |
[popupButton addItemsWithTitles:[@"Item 1", @"Item 2", @"Item 3", @"Item 4", @"Item 5"]]; | |
[contentView addSubview:popupButton]; | |
[theWindow orderFront:self]; | |
// Uncomment the following line to turn on the standard menu bar. | |
//[CPMenu setMenuBarVisible:YES]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment