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 […]
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