This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Current as of macOS 15.1 | |
Accessibility | |
Accounts | |
AirDrop | |
AirPlay | |
AppStoreSandboxes | |
AppleInstallerSandboxes | |
AppleMediaServices | |
ArchiveUtility |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Current as of macOS 15.1 | |
(with send-signal …) | |
(with errno …) | |
(with report) | |
(with no-report) | |
(with no-sandbox) | |
(with grant) | |
(with sip-override) | |
(with no-times) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/attr.h> | |
#include <sys/errno.h> | |
#include <unistd.h> | |
#include <sys/vnode.h> | |
struct DirEntryCount { | |
u_int32_t length; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface RetainCycle : NSObject | |
@end | |
@implementation RetainCycle { | |
id _object; | |
} | |
- (instancetype)init { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ((*(int8_t *)guard variable for __dynamic_cast::use_strcmp == 0x0) && (___cxa_guard_acquire(guard variable for __dynamic_cast::use_strcmp, rsi, rdx, rcx, r8, r9) != 0x0)) { | |
rsi = *_NSGetProgname(); | |
rcx = 0x1; | |
if (strcmp("Adobe Illustrator", rsi) != 0x0) { | |
rsi = *_NSGetProgname(); | |
rdx = 0x13; | |
rcx = strncmp("Adobe Photoshop CS5", rsi, rdx) == 0x0 ? 0x1 : 0x0; | |
} | |
*(int8_t *)__dynamic_cast::use_strcmp = rcx; | |
___cxa_guard_release(guard variable for __dynamic_cast::use_strcmp, rsi, rdx, rcx, r8, r9); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SE-0112 mentions an NS_ERROR_ENUM macro to convey the association between an error code enumeration and | |
// its associated error domain. Xcode 8 beta 4 includes the Swift changes from SE-0112, but does not appear | |
// to provide NS_ERROR_ENUM. | |
// | |
// NS_ERROR_ENUM is intended to expand to an enum with the ns_error_domain(…) attribute. | |
// Writing our own macro is complicated by the fact that the Swift Objective-C importer | |
// for Swift 2.3 gives special importing treatment to enums declared using NS_ENUM / CF_ENUM. | |
// This requires some hoop-jumping to ensure that the enum declared by our macro is handled | |
// nicely by both Swift 2.3 and Swift 3.0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface Base : NSObject | |
@end | |
@interface GenericCollection<T: Base *> : NSObject | |
@end | |
@class Derived2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// c++ -framework Foundation -std=c++14 -o dladdr-lambda-test dladdr-lambda-test.mm | |
#import <Foundation/Foundation.h> | |
#include <cxxabi.h> | |
#include <dlfcn.h> | |
#include <execinfo.h> | |
@interface MyObject : NSObject | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// cc -framework JavaScriptCore -fobjc-arc -o javascriptcore-constructor-test javascriptcore-constructor-test.m | |
#include <JavaScriptCore/JavaScriptCore.h> | |
@protocol TestInterface <JSExport> | |
- (instancetype)initWithString:(NSString *)string; | |
@property (readonly) NSString *string; |