A hard to spot runtime error results if you try to embed the key < in a dictionary. But when converting plain text for embedding in XML, that's one character you need to substitute.
scripting
When to use as, as!, or as?, how to handle Any, and when you need to use var instead of let even though you don’t change the value.
2017 was never going to be easy, and Apple had a lot of accidents over its closing months. It delivered a lot of new products, and with them a lot of new problems.
A starter Xcode 9.2 project to form a base for quick, scripting-style apps. Free of all copyright, free to use. Runs on El Capitan, Sierra, and High Sierra.
Maintaining a menu gathered across all the open documents could be tricky. Here’s a simple solution using UserDefaults and NotificationCenter.
Drawing in a graphics view shouldn’t be as hard as it seems. And how making custom ToolTips is simple, when you know how.
Java, JavaScript, whichever – do you need them, whose version should you install, and how do you look after them?
Dictionaries are valuable, perhaps vital for working with property lists, but seldom as flat as examples suggest. Here are some nested examples in real code.
Using Swift 4 for a classic scripting task: copying and restructuring files and folders, here to create a logarchive bundle.
How my apps were correctly signed, but using the wrong certificate. They passed all tests here, but would not come out of quarantine normally on other systems.
