This file contains hidden or 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
@import <Foundation/CPObject.j> | |
@implementation AppController : CPObject | |
{ | |
CPView _contentView; | |
CPTextField _nicknameTextField; | |
CPPanel _nicknameHUD; | |
} |
This file contains hidden or 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
@import <Foundation/CPObject.j> | |
@implementation AccountBarView : CPView | |
{ | |
CPSecureTextField passwordField; | |
CPTextField usernameField; | |
} | |
- (id)initWithFrame:(CGRect)aFrame |
This file contains hidden or 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
- (BOOL)resignFirstResponder | |
{ | |
#if PLATFORM(DOM) | |
var element = [[self class] _inputElement]; | |
//nil out dom handlers | |
element.onkeyup = nil; | |
element.onkeydown = nil; | |
element.onkeypress = nil; | |
This file contains hidden or 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
/* | |
* AppController.j | |
* | |
* Created by __Me__ on __Date__. | |
* Copyright 2008 __MyCompanyName__. All rights reserved. | |
*/ | |
@import <Foundation/CPObject.j> | |
@import "AccountBarView.j" | |
@import "MessageListView.j" |
This file contains hidden or 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
@import <Foundation/CPObject.j> | |
@implementation AccountBarView : CPView | |
{ | |
} | |
- (id)initWithFrame:(CGRect)aFrame | |
{ | |
self = [super initWithFrame: aFrame]; |
This file contains hidden or 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
@import <Foundation/CPObject.j> | |
@implementation MessageListView : CPView | |
{ | |
} | |
- (id)initWithFrame:(CGRect)aFrame | |
{ | |
self = [super initWithFrame: aFrame]; |
This file contains hidden or 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
/* | |
* AppController.j | |
* | |
* Created by __Me__ on __Date__. | |
* Copyright 2008 __MyCompanyName__. All rights reserved. | |
*/ | |
@import <Foundation/CPObject.j> | |
@import "AccountBarView.j" | |
@import "MessageListView.j" |
This file contains hidden or 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
[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]]]; |
NewerOlder