Covers String, FileManager, and Bundle, in Swift 3. Includes trimming space, inserting attributed text, file attributes.
Swift
Index to a new series of articles containing useful Swift 3 code snippets, hints, and more. Aimed at those getting started with the language on macOS.
A command which is seriously pernickety about its parameters, and sends all its output to the standard error stream. Such fun.
Does Xcode 8 support El Capitan, or does Apple leave it to developers to break the bad news to users?
I was surprised to discover that few books on Swift explain how to use its structured documentation system. No wonder we don’t document our code properly.
It’s time to clean up my code and factor out functions for re-use. This turns out to be straightforward.
Staple functions for scripts, it is vital that they are readily accessible from Swift if it is to be used for scripting.
How to run a shell command with root privileges from with Swift. The roundabout way.
Porting a 3-line AppleScript hack to Swift 3 in Xcode is not hard. But there’s always a but…
What more is needed if Swift is going to realise its promise as a scripting language for macOS?
