Skip to content

Instantly share code, notes, and snippets.

View nickjs's full-sized avatar

Nicholas J. Small nickjs

View GitHub Profile
@import "NodePanel.j"
@implementation AppController : CPObject
{
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
var node = {
@implementation LEHTMLView : CPView
{
CPString _string;
}
- (CPString)HTMLString
{
return _string;
}
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)];
Ferrari:cappuccino Nick$ ant debug
Buildfile: build.xml
debug:
build-debug:
build:
build:
/*
* LAMenu.j
* LayoutKit
*
* Created by Nicholas Small.
* Copyright 2008, Nicholas Small.
*/
@import <Foundation/CPObject.j>
@import <AppKit/CPMenu.j>
/*
* 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
@implementation LEConnectionDropbox : CPImageView
{
CPTextField _label;
CPView _highlight;
}
- (LEConnectionDropbox)initWithFrame:(CPRect)aFrame
{
self = [super initWithFrame:aFrame];
@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
- (id)jsonObject
{
var obj = {
"preferences": [[CPKeyedArchiver archivedDataWithRootObject:_preferences] string],
"profiles": _profiles,
"uploads": _uploads
};
return obj;
}
@implementation LEProfilePresentation : CPDictionary
{
CPString _name @accessors(property=name);
}
+ (id)alloc
{
var object = [CPDictionary alloc];
object.isa = [self class];