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
// | |
// Logic necessary to implement a "closing handler" for a NSDocument | |
// | |
// This is inspired by: | |
// - https://stackoverflow.com/questions/49343307/best-practice-to-implement-canclosewithdelegateshouldclosecontextinfo | |
// - https://github.com/keith/radars/blob/master/NSDocumentSwiftAnnotations/NSDocumentSwiftAnnotations/Document.swift | |
// Keith's supporting documentation for his radar submission: http://www.openradar.me/33422662 | |
// Documentation: | |
// - https://developer.apple.com/library/content/releasenotes/AppKit/RN-AppKitOlderNotes/ | |
// Paragraph called: "Advice for Overriders of Methods that Follow the delegate:didSomethingSelector:contextInfo: Pattern" |