Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Michaelson andrewmichaelson

View GitHub Profile
@andrewmichaelson
andrewmichaelson / PSPDFUIKitMainThreadGuard.m
Last active Mar 15, 2016 — forked from steipete/PSPDFUIKitMainThreadGuard.m
Modified to work with AppKit on OS X instead of UIKit on iOS.
View PSPDFUIKitMainThreadGuard.m
// Taken from the commercial iOS PDF framework http://pspdfkit.com.
// Copyright (c) 2013 Peter Steinberger. All rights reserved.
// Licensed under MIT (http://opensource.org/licenses/MIT)
//
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it.
#import <objc/runtime.h>
#import <objc/message.h>
#import <Foundation/Foundation.h>
You can’t perform that action at this time.