Skip to content

Instantly share code, notes, and snippets.

View toddfreese's full-sized avatar

Todd Freese toddfreese

View GitHub Profile
var detailWindowController = [[CPWindowController alloc] initWithWindowCibName:@"DetailWindow" owner:[CPBundle mainBundle]];
[detailWindowController showWindow:self];
//
// 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>
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
- (void)encodeWithCoder:(CPCoder)aCoder
{
[super encodeWithCoder:aCoder];
[aCoder encodeBool:_isAnimating forKey:EKActIndViewIsAnimating];
}
- (id)initWithCoder:(CPCoder)aCoder
{
self = [super initWithCoder:aCoder];
@implementation EKActivityIndicatorView : CPView
{
BOOL _isAnimating;
int _step;
CPTimer _timer;
CPColor _color;
float _colorRed;
float _colorGreen;
float _colorBlue;
}
- (id)loadWindow
{
var theWindow = [[CPWindow alloc]
initWithContentRect:CGRectMake(0, 0, 500, 180)
styleMask:CPHUDBackgroundWindowMask];
self = [super initWithWindow:theWindow];
if (self) {
- (id)init
{
var theWindow = [[CPPanel alloc]
initWithContentRect:CGRectMake(0, 0, 500, 180)
styleMask:CPHUDBackgroundWindowMask];
self = [super initWithWindow:theWindow];
if (self) {