Skip to content

Instantly share code, notes, and snippets.

View nickjs's full-sized avatar

Nicholas J. Small nickjs

View GitHub Profile
@nickjs
nickjs / CPNavigationBar.j
Created July 30, 2009 16:09
CPNavigationController & CPViewController
/*
* CPNavigationBar.j
* AppKit
*
* Created by Nicholas Small.
* Copyright 2009, 280 North, Inc.
*
* 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
@nickjs
nickjs / CPBundle.sj
Created July 22, 2009 17:59
CPLocalizedString for Cappuccino
/*
* CPBundle.sj
* AppKit
*
* Created by Nicholas Small.
* Copyright 2009, 280 North, Inc.
*
* 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
@nickjs
nickjs / CPPropertyAnimation.j
Created July 21, 2009 19:41
CPPropertyAnimation
/*
* CPPropertyAnimation.j
* AppKit
*
* Created by Nicholas Small. (Extended by David Cann).
* Copyright 2009, 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
@nickjs
nickjs / CPLightbox.j
Created May 31, 2009 08:23
CPLightbox Modals and Sheets
/*
* CPLightbox.j
* AppKit
*
* Created by Nicholas Small.
* Copyright 2009, 280 North, Inc.
*
* 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
slidekit Nick$ rake
(in /Users/Nick/Sites/escher/SlideKit)
exit value = 1
org.mozilla.javascript.WrappedException: Wrapped java.io.FileNotFoundException: /Users/Nick/objj_build/Release/SlideKit/objj.platform/SKAdjustment.j.tmp (No such file or directory) (/usr/local/bin/objjc#115)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1776)
at org.mozilla.javascript.MemberBox.newInstance(MemberBox.java:202)
at org.mozilla.javascript.NativeJavaClass.constructSpecific(NativeJavaClass.java:282)
at org.mozilla.javascript.NativeJavaClass.construct(NativeJavaClass.java:200)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1735)
at script.preprocess(/usr/local/bin/objjc:115)
$LOAD_PATH << File.join('~/Cappuccino/trunk', 'Rake')
require 'objective-j'
require 'objective-j/bundletask'
$BUILD_DIR = "#{ENV['STEAM_BUILD']}"
if (ENV['c'])
$CONFIGURATION = ENV['c']
$LOAD_PATH << File.join('~/Cappuccino/trunk', 'Rake')
require 'objective-j'
require 'objective-j/bundletask'
$BUILD_DIR = "#{ENV['STEAM_BUILD']}"
$CONFIGURATION = 'Release'
$BUILD_PATH = File.join($BUILD_DIR, $CONFIGURATION, 'Editor')
@import <Foundation/CPObject.j>
@implementation AppController : CPObject
{
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
diff --git a/AppKit/CPCollectionView.j b/AppKit/CPCollectionView.j
index c05deee..cabb056 100644
--- a/AppKit/CPCollectionView.j
+++ b/AppKit/CPCollectionView.j
@@ -110,6 +110,7 @@
_verticalMargin = 5.0;
_tileWidth = -1.0;
+ _isSelectable = YES;
_selectionIndexes = [CPIndexSet indexSet];
var dict = [CPDictionary dictionary];
var frame = [[CPView alloc] initWithFrame:CGRectMakeZero()];
[dict setObject:frame forKey:@"something"];
console.log([[dict objectForKey:@"something"] frame]);
[frame setFrame:CGRectMake(100.0, 100.0, 1000.0, 1000.0)];
console.log([frame frame])
console.log([[dict objectForKey:@"something"] frame]);