Skip to content

Instantly share code, notes, and snippets.

Andrew Michaelson andrewmichaelson

Block or report user

Report or block andrewmichaelson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.