Skip to content

The Eclectic Light Company

Macs & painting – 🦉 No AI content
Main navigation
  • Downloads
  • Freeware
  • M-series Macs
  • Mac Problems
  • Mac articles
  • Macs
  • Art

Swift 4.0

Scripting in Swift: Casting, Any, and implicit mutability

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.

January 1, 2018 Macs, Technology

A new Xcode project for scripting in Swift 4.0: ScriptBase

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.

December 23, 2017 Macs, Technology

Beyond Scripting in Swift: Decoding a property list

You want to read in a property list to structured data in Swift. The solution – in Swift 4 – is in a Coder, as explained here.

December 16, 2017 Macs, Technology

Easy access to xattrs from Swift 4: Martin R’s URL extension

Extension functions for the URL class which provide full access to xattrs without leaving the comfort of Swift 4.

December 12, 2017 Macs, Technology, xattr

Bug-hunting in Consolation and Woodpile: success in obscurity

New updates to these apps fix crashing bugs when using styled log display, or converting log excerpts to CSV (Consolation).

December 4, 2017 Macs, Technology

Beyond Scripting in Swift: Sharing and syncing data throughout an app

Maintaining a menu gathered across all the open documents could be tricky. Here’s a simple solution using UserDefaults and NotificationCenter.

November 13, 2017 Macs, Technology

Beyond Scripting with Swift: Bar charts and ToolTips

Drawing in a graphics view shouldn’t be as hard as it seems. And how making custom ToolTips is simple, when you know how.

October 23, 2017 Macs, Technology

More Scripting in Swift: Looking it up in a dictionary

T T Read More

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.

October 18, 2017 Macs, Technology

More Scripting in Swift: Shuffling files and writing a property list

Using Swift 4 for a classic scripting task: copying and restructuring files and folders, here to create a logarchive bundle.

October 5, 2017 Macs, Technology

Posts navigation

Previous 1 2Next
Blog at WordPress.com.
Footer navigation
  • Free Software Menu
  • About & Contact
  • Macs
  • Painting
  • Downloads
  • Mac problem-solving
  • Extended attributes (xattrs)
  • Painting topics
  • SilentKnight, Skint, SystHist, silnite, LockRattler & Scrub
  • DelightEd & Podofyllin
  • xattred, SpotTest, Providable, Spotcord, Metamer & xattr tools
  • 32-bitCheck & ArchiChect
  • XProCheck, T2M2, LogUI, Ulbow, blowhole and log utilities
  • Cirrus & Bailiff
  • Precize, Alifix, UTIutility, Sparsity, alisma, Taccy, Signet
  • Versatility & Revisionist
  • Text Utilities: Textovert, Disclipper, Nalaprop, Dystextia and others
  • PDF
  • Keychains & Permissions
  • Updates
  • Spundle, Cormorant, Stibium, DropSum, Dintch, Fintch and cintch
  • Long Reads
  • Mac Troubleshooting Summary
  • M-series Macs
  • Mints: a multifunction utility
  • VisualLookUpTest
  • Virtualisation on Apple silicon
  • System Updates
  • Saturday Mac Riddles
  • Last Week on My Mac
  • sysctl information
Secondary navigation
  • Search

Begin typing your search above and press return to search. Press Esc to cancel.

  • Subscribe Subscribed
    • The Eclectic Light Company
    • Join 8,972 other subscribers
    • Already have a WordPress.com account? Log in now.
    • The Eclectic Light Company
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar