Skip to content

Instantly share code, notes, and snippets.

@implementation DTTextField : CPTextField
{
}
+ (DOMElement)_inputElement
{
var CPTextFieldDOMInputElement = nil;
if (!CPTextFieldDOMInputElement)
{
import <Foundation/CPObject.j>
import "CalculatorLogic.j"
@implementation CalculatorButton : CPButton
{
}
+(id)newCalculatorButton:(CPText)buttonText target:(id)aTarget selector:(SEL)aSelector rect:(CGRect)aFrame
{
import <Foundation/CPObject.j>
@implementation CalculatorLogic : CPObject
{
CPNumber currentValue;
CPString acumulatedValue;
var decimalPointActive;
//1 * 0.1 * 0.1 in Js = 0.010000000000000002 :) Strings never fails!!!
id changeValueNotifyDelegate;
}
import <Foundation/CPObject.j>
@implementation AppController : CPObject
{
CPTextField label;
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{