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
- (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"]; | |
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 LEMapView : CPView | |
{ | |
id _map; | |
CPPoint _point; | |
int _zoom @accessors(property=zoom); | |
} | |
+ (void)initialize | |
{ |
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 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++) |
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); | |
} | |
- (void)mapToView:(CPView)aView | |
{ | |
for(var i = 0; i < [[self allKeys] count]; i++) | |
{ | |
var key = [self allKeys][i]; |
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]; |
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); | |
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
@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
/* | |
* 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
/* | |
* LAMenu.j | |
* LayoutKit | |
* | |
* Created by Nicholas Small. | |
* Copyright 2008, Nicholas Small. | |
*/ | |
@import <Foundation/CPObject.j> | |
@import <AppKit/CPMenu.j> |