This file contains 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 "NodePanel.j" | |
@implementation AppController : CPObject | |
{ | |
} | |
- (void)applicationDidFinishLaunching:(CPNotification)aNotification | |
{ | |
var node = { |
This file contains 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 LEHTMLView : CPView | |
{ | |
CPString _string; | |
} | |
- (CPString)HTMLString | |
{ | |
return _string; | |
} | |
This file contains 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
var field = [[CPTextField alloc] initWithFrame:CGRectMake(300,300,100,20)]; | |
[field setBordered:YES]; | |
[field setBezeled:YES]; | |
[field setEditable:YES]; | |
[field setBezelStyle:CPTextFieldSquareBezel]; | |
[field setStringValue:"7"] | |
[BridgeWindowView addSubview:field]; | |
[BridgeWindow makeFirstResponder:field]; | |
var result = [[CPTextField alloc] initWithFrame:CGRectMake(300,400,100,20)]; |
This file contains 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
Ferrari:cappuccino Nick$ ant debug | |
Buildfile: build.xml | |
debug: | |
build-debug: | |
build: | |
build: |
This file contains 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
/* | |
* LAMenu.j | |
* LayoutKit | |
* | |
* Created by Nicholas Small. | |
* Copyright 2008, Nicholas Small. | |
*/ | |
@import <Foundation/CPObject.j> | |
@import <AppKit/CPMenu.j> |
This file contains 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
/* | |
* CPLocale.j | |
* Foundation | |
* | |
* Created by Nicholas Small. | |
* Copyright 2008, Nicholas Small | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either |
This file contains 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 LEConnectionDropbox : CPImageView | |
{ | |
CPTextField _label; | |
CPView _highlight; | |
} | |
- (LEConnectionDropbox)initWithFrame:(CPRect)aFrame | |
{ | |
self = [super initWithFrame:aFrame]; | |
This file contains 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 LEProfilePresentation : CPDictionary | |
{ | |
CPString _name @accessors(property=name); | |
BOOL _notSizable; | |
} | |
+ (id)alloc | |
{ | |
var object = [CPDictionary alloc];http://gist.github.com/images/modules/gist/paste_button.png | |
This file contains 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
- (id)jsonObject | |
{ | |
var obj = { | |
"preferences": [[CPKeyedArchiver archivedDataWithRootObject:_preferences] string], | |
"profiles": _profiles, | |
"uploads": _uploads | |
}; | |
return obj; | |
} |
This file contains 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 LEProfilePresentation : CPDictionary | |
{ | |
CPString _name @accessors(property=name); | |
} | |
+ (id)alloc | |
{ | |
var object = [CPDictionary alloc]; | |
object.isa = [self class]; |