Instantly share code, notes, and snippets.

View PSPDFAppKitMainThreadGuard.m
// Taken from the commercial iOS PDF framework
// Copyright (c) 2013 Peter Steinberger. All rights reserved.
// Licensed under MIT (
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it.
// This version tweaked to work on Mac OS X / AppKit.
#import <Cocoa/Cocoa.h>
#import <objc/runtime.h>
View NSObject+setValuesForKeysWithJSONDictionary.h
// NSObject+setValuesForKeysWithJSONDictionary.h
// SafeSetDemo
// Created by Tom Harrington on 12/29/11.
// Copyright (c) 2011 Atomic Bird, LLC. All rights reserved.
#import <Foundation/Foundation.h>