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
@implementation DTTextField : CPTextField | |
{ | |
} | |
+ (DOMElement)_inputElement | |
{ | |
var CPTextFieldDOMInputElement = nil; | |
if (!CPTextFieldDOMInputElement) | |
{ |
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> | |
import "CalculatorLogic.j" | |
@implementation CalculatorButton : CPButton | |
{ | |
} | |
+(id)newCalculatorButton:(CPText)buttonText target:(id)aTarget selector:(SEL)aSelector rect:(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
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; | |
} |
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 | |
{ | |
CPTextField label; | |
} | |
- (void)applicationDidFinishLaunching:(CPNotification)aNotification | |
{ |
NewerOlder