Instantly share code, notes, and snippets.

View NSWindow+KVLoop.h
@interface NSWindow (KVLoop)
- (IBAction)logKeyViewLoop:(id)sender;
View gist:9a3181909b1fe67368f8
#pragma mark -
#pragma mark NSTableViewDataSource
- (void)tableView:(NSTableView *)tableView draggingSession:(NSDraggingSession *)session willBeginAtPoint:(NSPoint)screenPoint forRowIndexes:(NSIndexSet *)rowIndexes
// configure the drag image
// we are only dragging one item
NSTableCellView *cellView = [self.columnsTableView viewAtColumn:0 row:rowIndexes.firstIndex makeIfNecessary:NO];
if (cellView) {
View gist:24c0c317f5588331d9f7
if [ "${CONFIGURATION}" = "Release" ]; then
# HockeyApp support
# Set prinicipal class in output info.plist
# This improves the crash catchers behaviour for release builds only.
# NSApplication is preferred for development builds as it logs to the console.
echo "${release_plist}"
/usr/libexec/PlistBuddy -c "Set :NSPrincipalClass BITCrashExceptionApplication" "${release_plist}"
View BPImageView.h
@interface BPImageView : NSImageView
@property SEL clickAction;
View DBNumber.h
// DBNumber.h
// Dubrovnik
// Created by Jonathan Mitchell on 24/02/2014.
#import <Foundation/Foundation.h>
#import "DBMonoIncludes.h"