Feb 13 2018
File Handling master post
Once you start looking into what file creation and reading involves, you may feel an urge to run away screaming. I certainly did. So far, I have managed to write posts on – NSOpenPanel/NSSavePanel – Basic FileManager paths/URLs – custom file types – Codable/NSCoding These posts do not touch on – file coordinators and -presenters […]
Feb 27 2018
Saving Files with Codable
macOS 10.12.6; Xcode 9.2; Swift 4.0 This is the basic ‘create a file’ post; you still need to register your filetype with the Finder and tell your app what it means to open a file when the user double-clicks it in the Finder; there is a separate post on Filetypes and UTIs which builds on […]
By Extelligent Cocoa • File Handling, Tutorials, Wiki • • Tags: Codable, NSCoding, NSKeyedArchiver, NSKeyedUnarchiver, NSOpenPanel, NSSavePanel