Skip to content

Instantly share code, notes, and snippets.


Andrew Michaelson andrewmichaelson

View GitHub Profile
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
// 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.
#import <objc/runtime.h>
#import <objc/message.h>
#import <Foundation/Foundation.h>
You can’t perform that action at this time.