Writing an IMAP client for the Mac menu bar

I wanted to read and answer mail without opening a mail app, so Barista has its own little IMAP and SMTP client living in a menu bar popover. Here's what went into it: a networking switch, a sneaky read-state bug, threading, and keeping HTML mail safe.

Continue reading →

Three problems that surprised me building Barista

In the last post I wrote about what Barista is and why I built it. This one is about the building part: three problems that took far longer to figure out than they should have, and what I learned from each.

Barista's weather widget uses WeatherKit, Apple's weather service. Adding it was supposed to be a small change: enable the service for the app, add one entitlement, call the API. Instead, the next development build refused to launch. No crash report, no error, nothing in the logs under the app's name. The process was simply killed the moment it started (exit code 137, a SIGKILL).

Continue reading →