Welcome to Brian Webster's Blog

Recent Posts

Brian Webster's Avatar'

Indie development in the age of AI coding

I’ve been an independent Mac developer for going on twenty years now (yikes!). It’s got its downsides, such as having to do everything from programming to support to marketing to taxes, and not ever really being able to take extended time off. But you get to work on what you want to work on, you can sit around creating stuff all day, and the flexibility can’t be beat (also: pants optional). It’...

I’ve been an independent Mac developer for going on twenty years now (yikes!). It’s got its downsides, such as having to do everything from programming to support to marketing to taxes, and not ever really being able to take extended time off. But you get to work on what you want to work on, you ...

Brian Webster's Avatar'

How NSHostingView determines its sizing

I was recently banging my head against a problem trying to add a SwiftUI view into my existing AppKit using NSHostingView. The basic problem was that it seemed no matter what I did, I couldn’t get my SwiftUI view to expand to fill up the entire superview that the NSHostingView was being added to. The basic layout of the SwiftUI view looks like this. struct IPReportDetailView: View { var bo...

I was recently banging my head against a problem trying to add a SwiftUI view into my existing AppKit using NSHostingView. The basic problem was that it seemed no matter what I did, I couldn’t get my SwiftUI view to expand to fill up the entire superview that the NSHostingView was being added to....

Brian Webster's Avatar'

Accessing sandboxed containers in macOS Sonoma

As outlined in WWDC ’23’s “What’s New In Privacy” session and the sandbox documentation: In macOS 14 and later, the operating system uses your app’s code signature to associate it with its sandbox container. If your app tries to access the sandbox container owned by another app, the system asks the person using your app whether to grant access. If the person denies access and your app is al...

As outlined in WWDC ’23’s “What’s New In Privacy” session and the sandbox documentation: In macOS 14 and later, the operating system uses your app’s code signature to associate it with its sandbox container. If your app tries to access the sandbox container owned by another app, the system as...

Brian Webster's Avatar'

How to make a global keyboard shortcut to toggle your Mac Mastodon app’s visibility

I was a happy user of both Twitteriffic and Tweetbot on both Mac and iOS for many years, until of course Elon burned everything to the ground and kicked out all the third party Twitter clients. I’ve moved over to Mastodon now, and while there are several decent Mastodon apps on the Mac, most of them are designed for iOS first and lack one of my favorite features from both Twitteriffic and Twee...

I was a happy user of both Twitteriffic and Tweetbot on both Mac and iOS for many years, until of course Elon burned everything to the ground and kicked out all the third party Twitter clients. I’ve moved over to Mastodon now, and while there are several decent Mastodon apps on the Mac, most of ...