Skip to content

Instantly share code, notes, and snippets.

View lsinger's full-sized avatar

Leif Singer lsinger

View GitHub Profile
@import <Foundation/CPObject.j>
@implementation AppController : CPObject
{
CPView _contentView;
CPTextField _nicknameTextField;
CPPanel _nicknameHUD;
}
@import <Foundation/CPObject.j>
@implementation AccountBarView : CPView
{
CPSecureTextField passwordField;
CPTextField usernameField;
}
- (id)initWithFrame:(CGRect)aFrame
- (BOOL)resignFirstResponder
{
#if PLATFORM(DOM)
var element = [[self class] _inputElement];
//nil out dom handlers
element.onkeyup = nil;
element.onkeydown = nil;
element.onkeypress = nil;
/*
* AppController.j
*
* Created by __Me__ on __Date__.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*/
@import <Foundation/CPObject.j>
@import "AccountBarView.j"
@import "MessageListView.j"
@import <Foundation/CPObject.j>
@implementation AccountBarView : CPView
{
}
- (id)initWithFrame:(CGRect)aFrame
{
self = [super initWithFrame: aFrame];
@import <Foundation/CPObject.j>
@implementation MessageListView : CPView
{
}
- (id)initWithFrame:(CGRect)aFrame
{
self = [super initWithFrame: aFrame];
/*
* AppController.j
*
* Created by __Me__ on __Date__.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*/
@import <Foundation/CPObject.j>
@import "AccountBarView.j"
@import "MessageListView.j"
[self setBackgroundColor: [CPColor colorWithPatternImage: [[CPThreePartImage alloc] initWithImageSlices: [CPArray arrayWithObjects:
[[CPImage alloc] initWithContentsOfFile: @"Resources/MessageListView-background.png"],
[[CPImage alloc] initWithContentsOfFile: @"Resources/MessageListView-background-solid.png"],
[[CPImage alloc] initWithContentsOfFile: @"Resources/MessageListView-background-solid.png"]
]
isVertical: YES]]];