Skip to content

Instantly share code, notes, and snippets.

View nickjs's full-sized avatar

Nicholas J. Small nickjs

View GitHub Profile
@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
@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 / 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 / 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 / CPMenuItem.diff
Created July 31, 2009 21:03
Monkey Patches
diff --git a/AppKit/CPMenuItem.j b/AppKit/CPMenuItem.j
index b738729..c71f259 100644
--- a/AppKit/CPMenuItem.j
+++ b/AppKit/CPMenuItem.j
@@ -78,6 +78,27 @@
_CPMenuItemView _menuItemView;
}
+- (id)init
+{
@nickjs
nickjs / CPUserDefaults.j
Created November 20, 2009 23:18
CPUserDefaults
/*
* CPUserDefaults.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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CPBundleIdentifier</key>
<string>com.shopify.Text.plugin</string>
<key>CPBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CPBundleName</key>
<string>Text.plugin</string>
/*
* Jakefile
* Shopify - com.shopify.Text.plugin
*
* Created by Nicholas Small on January 31, 2010.
* Copyright 2010, JadedPixel, Inc. All rights reserved.
*/
var ENV = require("system").env,
FILE = require("file"),
var SharedController;
@implementation MyWindowController : CPWindowController
{
}
+ (id)sharedController
{
if (!SharedController)
SharedController = [[self alloc] init];
/*
* NavigationCell.j
* DesktopShop
*
* Created by Nicholas Small on February 2, 2010.
* Copyright 2010, JadedPixel, Inc. All rights reserved.
*/
@import <AppKit/CPView.j>