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
@interface KVOOperationQueue() | |
@property(nonatomic, strong) NSOperationQueue *queue; | |
@end | |
@implementation KVOOperationQueue | |
-(id)init{ | |
self = [super init]; | |
if(self){ | |
filePath = filename; |
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
/** | |
Writes a set of objects in the database. | |
- parameter objects: Array of `Objects` to be stored on the database | |
- parameter configuration: Realm `Configuration` in which the write action will be performed | |
- parameter update: Enabled the custom *update* maintaining existing relationships | |
*/ | |
static func write(objects : [Object], configuration: Realm.Configuration, update: Bool = false) { | |
if let realm = try? Realm(configuration: configuration) { | |
realm.beginWrite() |
For some reason, it is surprisingly hard to create a bootable Windows USB using macOS. These are my steps for doing so, which have worked for me in macOS Monterey (12.6.1) for Windows 10 and 11. After following these steps, you should have a bootable Windows USB drive.
You can download Windows 10 or Windows 11 directly from Microsoft.
After plugging the drive to your machine, identify the name of the USB device using diskutil list
, which should return an output like the one below. In my case, the correct disk name is disk2
.