Skip to content

Instantly share code, notes, and snippets.

View nickjs's full-sized avatar

Nicholas J. Small nickjs

View GitHub Profile
- (void)openEditor:(id)sender
{
if(!_panel)
{
_panel = [[CPPanel alloc] initWithContentRect:CGRectMake(0,0,300,270) styleMask:CPHUDBackgroundWindowMask | CPClosableWindowMask | CPResizableWindowMask];
[_panel setFloatingPanel:YES];
[_panel center];
[_panel setTitle:@"Contact Info"];
@implementation LEMapView : CPView
{
id _map;
CPPoint _point;
int _zoom @accessors(property=zoom);
}
+ (void)initialize
{
@implementation LEPresentation : CPDictionary
- (void)setValue:(id)aValue forUndefinedKey:(CPString)keyPath
{
[self setObject:aValue forKey:keyPath];
}
- (void)mapToView:(CPView)aView
{
for(var i = 0; i < [[self allKeys] count]; i++)
@implementation LEProfilePresentation : CPDictionary
{
CPString _name @accessors(property=name);
}
- (void)mapToView:(CPView)aView
{
for(var i = 0; i < [[self allKeys] count]; i++)
{
var key = [self allKeys][i];
@implementation LEProfilePresentation : CPDictionary
{
CPString _name @accessors(property=name);
}
+ (id)alloc
{
var object = [CPDictionary alloc];
object.isa = [self class];
- (id)jsonObject
{
var obj = {
"preferences": [[CPKeyedArchiver archivedDataWithRootObject:_preferences] string],
"profiles": _profiles,
"uploads": _uploads
};
return obj;
}
@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
@implementation LEConnectionDropbox : CPImageView
{
CPTextField _label;
CPView _highlight;
}
- (LEConnectionDropbox)initWithFrame:(CPRect)aFrame
{
self = [super initWithFrame:aFrame];
/*
* 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
/*
* LAMenu.j
* LayoutKit
*
* Created by Nicholas Small.
* Copyright 2008, Nicholas Small.
*/
@import <Foundation/CPObject.j>
@import <AppKit/CPMenu.j>