NSUndoManager in a storyboard-based macOS app

Getting Undo and Redo events working with the storyboard-based macOS application template

Handling an NSFileHandle SIGPIPE in Swift

NSFileHandle, and SIGPIP, and Swift! Oh, my!