sant0sk1 (owner)

Revisions

gist: 217662 Download_button fork
public
Public Clone URL: git://gist.github.com/217662.git
Embed All Files: show embed
AppController.j #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@import <Foundation/CPObject.j>
 
 
@implementation AppController : CPObject
{
}
 
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
    var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
        contentView = [theWindow contentView];
 
    var passwordField = [CPTextField textFieldWithStringValue:@"" placeholder:@"password" width:200.0];
        [passwordField setSecure:YES];
        [contentView addSubview:passwordField];
 
    [contentView addSubview:passwordField];
    [theWindow orderFront:self];
}
 
@end