Skip to content

Instantly share code, notes, and snippets.

@tbalthazar
Created March 25, 2009 08:14
Show Gist options
  • Select an option

  • Save tbalthazar/85365 to your computer and use it in GitHub Desktop.

Select an option

Save tbalthazar/85365 to your computer and use it in GitHub Desktop.
/*
* AppController.j
*
* Created by __Me__ on __Date__.
* Copyright 2008 __MyCompanyName__. 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 passwordText = [[CPSecureTextField alloc] initWithFrame:CGRectMake(120,40,170,22)];
[passwordText setTextColor:[CPColor blackColor]];
[passwordText setBackgroundColor:[CPColor darkGrayColor]];
[passwordText setEditable:YES];
[passwordText setTarget:self];
[contentView addSubview:passwordText];
[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