Get old OS X/ macOS installer from the App Store via mas.
Direct links prioir to Catalina via Rich Trouton
Direct link: https://apps.apple.com/gb/app/macos-monterey/id1576738294
// Don't forget to prefix your category! | |
#import <UIKit/UIKit.h> | |
NS_ASSUME_NONNULL_BEGIN | |
@interface UIWindow (PSPDFAdditions) | |
#if TARGET_OS_UIKITFORMAC |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>IncompatiblePaths</key> | |
<array> | |
<dict> | |
<key>Application Name</key> | |
<string>Sxs Memory Card Driver</string> | |
<key>Blurb</key> |
- (void)moveToURL:(NSURL *)url completionHandler:(void (^ __nullable)(NSError * __nullable))completionHandler | |
{ | |
NSError *error = nil; | |
NSURL *adjustedURL = nil; | |
if (![[url pathExtension] isEqualToString:@"testextension"]) { | |
adjustedURL = [url URLByAppendingPathExtension:@"testextension"]; | |
} |
// | |
// XDocumentSource.h | |
// Textastic Universal | |
// | |
// Created by Alexander Blach on 01.05.18. | |
// | |
#import <Foundation/Foundation.h> | |
@protocol XDocumentSourceProtocol |
Get old OS X/ macOS installer from the App Store via mas.
Direct links prioir to Catalina via Rich Trouton
Direct link: https://apps.apple.com/gb/app/macos-monterey/id1576738294
The attached lldb command pblock
command lets you peek inside an Objective-C block. It tries to tell you where to find the source code for the block, and the values captured by the block when it was created.
Consider this example program:
#import <Foundation/Foundation.h>
@interface Foo: NSObject
@end
@implementation Foo
sudo gitlab-runner register \ | |
--non-interactive \ | |
--url "https://gitlab.local/" \ | |
--registration-token "xJWfniGqvSeVyKc3vaQx" \ | |
--executor "docker" \ | |
--docker-image ubuntu:16.04 \ | |
--description "docker-runner" \ | |
--tag-list "docker,aws" \ | |
--run-untagged \ | |
--docker-extra-hosts "gitlab.local:10.0.1.15" \ |
import UIKit | |
class MyTextLabel: UIView { | |
var textLayer = CATextLayer() | |
var textStorage: String = "" { | |
didSet { | |
textLayer.string = textStorage | |
} | |
} |
The libdispatch is one of the most misused API due to the way it was presented to us when it was introduced and for many years after that, and due to the confusing documentation and API. This page is a compilation of important things to know if you're going to use this library. Many references are available at the end of this document pointing to comments from Apple's very own libdispatch maintainer (Pierre Habouzit).
My take-aways are:
You should create very few, long-lived, well-defined queues. These queues should be seen as execution contexts in your program (gui, background work, ...) that benefit from executing in parallel. An important thing to note is that if these queues are all active at once, you will get as many threads running. In most apps, you probably do not need to create more than 3 or 4 queues.
Go serial first, and as you find performance bottle necks, measure why, and if concurrency helps, apply with care, always validating under system pressure. Reuse
version: '2.1' | |
volumes: | |
files: | |
driver: local | |
mysql: | |
driver: local | |
backup: | |
driver: local | |
redis: |