This file contains hidden or 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 | |
/// Additionally writes any data written to standard output into the given output stream. | |
/// | |
/// - Parameters: | |
/// - output: An output stream to receive the standard output text | |
/// - encoding: The encoding to use when converting standard output into text. | |
/// - body: A closure that is executed immediately. | |
/// - Returns: The return value, if any, of the `body` closure. | |
func printingStandardOutput<T>(to output: inout TextOutputStream, encoding: String.Encoding = .utf8, body: () -> T) async -> T { |
This file contains hidden or 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 CoreData; | |
/** | |
A subclass of NSMigrationManager that is more memory efficient than | |
NSMigrationManager itself. | |
This class maintains its own source and destination instance association | |
tables, which store only the URI representation of the instances's object IDs, | |
rather than the objects themselves. This means that objects do not accumulate |
This file contains hidden or 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
// | |
// StoryboardController.h | |
// Ideas | |
// | |
// Created by James Moschou on 12/3/13. | |
// Copyright (c) 2013 James Moschou. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains hidden or 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
@interface UIResponder (FirstResponder) | |
+ (UIResponder *)firstResponder; | |
@end |