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

scripting

Swift Snippets 5: Bundles, Process, Background activity, Shell commands

Calling shell commands, including with privileges, NSBackgroundActivity, XPC Activity, and writing shell commands in Swift.

June 28, 2017 Macs, Technology

Swift Snippets 4: Numbers, Dates, Unified log, Objective-C

Dates with (NS)Date and DateFormatter, writing messages to Sierra’s unified log, and working with old Objective-C interfaces.

June 28, 2017 Macs, Technology

Swift Snippets 3: Preference Files, Property Lists, JSON

Reading and writing preference files, storing data in property list files, and reading JSON data.

June 28, 2017 Macs, Technology

Swift Snippets 2: Interface, NSDocument, Files

Alerts, open and save file, text boxes, radio buttons, popup menus, steppers, read and write in NSDocuments, and much more.

June 28, 2017 Macs, Technology

Swift Snippets 1: Strings, Attributed Text, Arrays

Swift 3.1 code snippets for string manipulation, working with attributes in attributed text, and with arrays.

June 28, 2017 Macs, Technology

Swift Snippets 0: Introduction and Contents

T T Read More

Covers new series of Swift Snippets articles, with links to those articles, other relevant ones here, and the whole series in a Tinderbox document.

June 28, 2017 Macs, Technology

More fun scripting in Swift with Xcode: files and deep traversal

A classic scripting task: iterate through a folder and its entire contents, testing to see if each file is readable or writable. It’s straightforward in Swift too.

June 20, 2017 Macs, Technology

Beyond Scripting in Swift: Of characters and closures

There are lots of different ways to modify a string, but some would turn out to be very inefficient. A gentle wander through CharacterView and a mapping closure.

June 14, 2017 Macs, Technology

Beyond Scripting in Swift: Sets, Lies, and Videotape

A simple and elegant way to eliminate duplicates from an array of strings comes and goes as Swift 3.1 takes charge.

May 26, 2017 Macs, Technology

Beyond Scripting in Swift: Dates, Steppers, and parsing log entries

How T2M2 analyses Sierra’s log to assess how backups have been working. With insights into using NSDate, NSStepper, and more.

May 23, 2017 Macs, Technology

Posts navigation

Previous 1 … 7 8 9 10 11 … 15 Next
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, 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, 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,893 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
 

Loading Comments...