Skip to content

The Eclectic Light Company

Macs, painting, and more
Main navigation
  • Downloads
  • M1 Macs
  • Mac Problems
  • Mac articles
  • Art
  • Macs
  • Painting

Swift

Printing without tears in Dark Mode (and exporting to PDF)

How to cater for Dark Mode when printing an AppKit view, and how to add a command to export a document in PDF format. Swift 5.0.

April 19, 2019 Macs, Technology

Running a command tool or app results in an error ‘dyld: Library not loaded’

This error message can occur when running any command tool, or an app which calls a command tool, in 10.14.3 and earlier.

April 1, 2019 Macs, Technology

When a window closes as soon as it has opened

In Sierra but not Mojave, when the user opens an ancillary window, it appears for a moment, then vanishes. Is it a bug in the code, or in AppKit?

March 13, 2019 Macs, Technology

Last Week on My Mac: Apple quietly pre-announces major change in macOS 10.14.4

How many apps should launch faster, deliver better performance, be smaller, and use less memory than they have in the past.

February 24, 2019 Macs, Technology

PDF without Adobe: 7 Adding a PDF Help book

A simple way to provide a proper Help book for your app, and separate PDF documentation without wasted effort. Uses Swift in Xcode.

February 18, 2019 Macs, Technology

PDF without Adobe: 5 Building your own PDF reader 3

By popular request, how to customise the PDF reader’s interface to enlarge the window and show larger thumbnails. With two lines of code.

February 15, 2019 Macs, Technology

PDF without Adobe: 4 Building your own PDF reader 2

This second part uses Xcode’s Interface Builder to create the document window, then wire it up to the code which brings PDFKit and AppKit together.

February 14, 2019 Macs, Technology

PDF without Adobe: 3 Building your own PDF reader 1

Building a useful app in Xcode 10.1 with Swift. This app is a PDF reader which requires around a dozen lines of code.

February 14, 2019 Macs, Technology

Scripting in Swift: Process deprecations

Calling command tools from Swift changes with macOS 10.13 and 10.14 with the deprecation of some of the Process class. Solutions aren’t as clean as they should be.

February 2, 2019 Macs, Technology

macOS coding beyond the books: basic menu control

Simple: when running on older macOS, remove some items from the app menu. The solution is also straightforward, just very hard to locate.

December 4, 2018 Macs, Technology

Posts navigation

Previous 1 2 3 4 … 15 Next
Blog at WordPress.com.
Footer navigation
  • About & Contact
  • Macs
  • Painting
  • Language
  • Tech
  • Life
  • General
  • Downloads
  • Mac problem-solving
  • Extended attributes (xattrs)
  • Painting topics
  • Hieronymus Bosch
  • English language
  • LockRattler: 10.12 Sierra
  • LockRattler: 10.13 High Sierra
  • LockRattler: 10.11 El Capitan
  • Updates: El Capitan
  • Updates: Sierra, High Sierra, Mojave, Catalina, Big Sur
  • LockRattler: 10.14 Mojave
  • SilentKnight, silnite, LockRattler, SystHist & Scrub
  • DelightEd & Podofyllin
  • xattred, Metamer, Sandstrip & xattr tools
  • 32-bitCheck & ArchiChect
  • T2M2, Ulbow, Consolation and log utilities
  • Cirrus & Bailiff
  • Taccy, Signet, Precize, Alifix, UTIutility, alisma
  • Revisionist & DeepTools
  • Text Utilities: Nalaprop, Dystextia and others
  • PDF
  • Keychains & Permissions
  • LockRattler: 10.15 Catalina
  • Updates
  • Spundle, Cormorant, Stibium, Dintch, Fintch and cintch
  • Long Reads
  • LockRattler: 11.0 Big Sur
  • Mac Troubleshooting Summary
  • M1 Macs
Secondary navigation
  • Search

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

Cancel