Skip to content

Instantly share code, notes, and snippets.

View toddfreese's full-sized avatar

Todd Freese toddfreese

View GitHub Profile
- (id)init
{
var theWindow = [[CPPanel alloc]
initWithContentRect:CGRectMake(0, 0, 500, 180)
styleMask:CPHUDBackgroundWindowMask];
self = [super initWithWindow:theWindow];
if (self) {
- (id)loadWindow
{
var theWindow = [[CPWindow alloc]
initWithContentRect:CGRectMake(0, 0, 500, 180)
styleMask:CPHUDBackgroundWindowMask];
self = [super initWithWindow:theWindow];
if (self) {
@implementation EKActivityIndicatorView : CPView
{
BOOL _isAnimating;
int _step;
CPTimer _timer;
CPColor _color;
float _colorRed;
float _colorGreen;
float _colorBlue;
}
- (void)encodeWithCoder:(CPCoder)aCoder
{
[super encodeWithCoder:aCoder];
[aCoder encodeBool:_isAnimating forKey:EKActIndViewIsAnimating];
}
- (id)initWithCoder:(CPCoder)aCoder
{
self = [super initWithCoder:aCoder];
todd:web_static todd$ jake deploy
(in /Users/todd/Desktop/web_static)
(in /Users/todd/Desktop/web_static)
Compiling [Browser] AppController.j...................................................
Compiling [Browser] APRWebView.j...
Compiling [Browser] Badge.j...
Compiling [Browser] CAQuickTimeLayer.j...
Compiling [Browser] CPJSONPConnection.jSyntaxError: Parse error
Syntax error in CPJSONPConnection.j on preprocessed line number 1
//
// MonthHUD.j
// WebSchedule
//
// Created by Todd Freese, The Filmworkers Club
// Copyright 2008-10, The Filmworkers Club, All rights reserved.
//
@import <AppKit/CPPanel.j>
@import <AppKit/CPWindowController.j>
var detailWindowController = [[CPWindowController alloc] initWithWindowCibName:@"DetailWindow" owner:[CPBundle mainBundle]];
[detailWindowController showWindow:self];
backgroundImageView = [[CPImageView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth([splashContentView bounds]), CGRectGetHeight([splashContentView bounds]))];
[backgroundImageView setImageScaling:CPScaleNone];
[backgroundImageView setHasShadow:NO];
[backgroundImageView setAutoresizingMask:CPViewMinXMargin | CPViewMaxXMargin | CPViewMinYMargin | CPViewMaxYMargin];
[splashContentView addSubview:backgroundImageView];
/*
* AppController.j
* Testing
*
* Created by You on April 21, 2011.
* Copyright 2011, Your Company All rights reserved.
*/
@import <Foundation/CPObject.j>
@toddfreese
toddfreese / gist:1513053
Created December 23, 2011 03:37
CPOutlineView dataView
@implementation FolderListCell : CPView
{
CPString folderNameText;
CPImage icon;
CPImageView iconView;
CPTextField label;
BOOL isSelected;
JSObject folderObject;
}