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

AppleScript

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

Last Week on My Mac: Brilliant but

The odd behaviour of some apps, which quit on their own, but hang around as zombies, and the long battle trying to make sense of logs.

November 12, 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

Code signing: confusing and weak?

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.

September 30, 2017 Macs, Technology

Beyond Scripting in Swift: When xattrs are not like files

NSDocument is based on the data stored in the data fork of a file. Could it be modified to work with xattrs instead? And dipping my toes into NSTableView.

September 18, 2017 Macs, Technology, xattr

Beyond Scripting in Swift: Direct access to xattrs, calling C, and converting Data to Strings

T T Read More

Using wrappers to call C functions which give direct access to xattrs, handling throws, and converting arbitrary Data to Strings.

September 6, 2017 Macs, Technology, xattr

More Fun Scripting with Swift in Xcode: extended attributes

Working with extended attributes in Swift. They’re straightforward using shell commands, but that is not the best way ahead.

August 21, 2017 Macs, Technology, xattr

Beyond Scripting in Swift: Preferences with and without UserDefaults

How much more difficult is it to write your own code to handle user preferences, rather than letting UserDefaults handle them?

August 7, 2017 Macs, Technology

Posts navigation

Previous 1 … 4 5 6 7 8 … 13 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,875 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...