Skip to content

Instantly share code, notes, and snippets.

@luciuskwok
luciuskwok / Export iOS App Icons.jsx
Created September 3, 2013 21:46
Takes the currently open document and exports it in the standard iOS app icon sizes. This script is designed for Photoshop CS5. This version handles scaling styles correctly.
// Export iOS App Icons
// by Lucius Kwok
// Takes the currently open document and exports it in the standard iOS app icon sizes.
// This script is designed for Photoshop CS5.
// To install, place this file in the /Applications/Adobe Photoshop CS5/Presets/Scripts/ folder.
function resizeDoc(width) {
var desc = new ActionDescriptor();
desc.putUnitDouble( charIDToTypeID('Wdth'), charIDToTypeID('#Pxl'), width );
desc.putBoolean( stringIDToTypeID('scaleStyles'), true );
@luciuskwok
luciuskwok / DeletableTableView.h
Created November 17, 2010 07:21
DeletableTableView, an NSTableView subclass which supports delete.
#import <Cocoa/Cocoa.h>
@interface DeletableTableView : NSTableView {
}
@end
@protocol DeletableTableViewDelegate
- (void)tableViewDelete:(DeletableTableView *)aView;
@end