99 posts tagged ‘Programming’
exit(173) Receipt Fetching Deprecated on Sequoia
Jeff Johnson (Mastodon): [If] you compile your app with the macOS 15 SDK in Xcode 16, and your app exits with the status 173—the traditional way to handle Mac App Store receipt validation failure—then macOS 15 Sequoia will show the user an alert[…]The alert is terrible for at least two reasons. First, the text is […]
ToothFairy 2.8.5
ToothFairy 2.8.5 is a maintenance update of my Bluetooth menu bar utility. It fixes a bug where sometimes ToothFairy wouldn’t auto-launch at login. An interesting bug was: ToothFairy uses SMLoginItemSetEnabled(), which, instead of launching the app directly, launches a helper app that can launch the main app. Originally, it did this using NSWorkspace.launchApplication(_:), but then […]
Swift Protocol Requirement Quirks
Jesse Squires: A handful of protocol witness mismatches are currently allowed:Non-failable initializers can satisfy failable initializer protocol requirements (as I encountered above)Non-throwing functions can satisfy throwing function protocol requirementsNon-escaping closure parameters can satisfy @escaping protocol requirementsGeneric functions can satisfy non-generic protocol requirementsNon-mutating functions can satisfy mutating protocol requirementsEnum cases can satisfy static function protocol requirementsSynchronous […]
Resolving Trusted Execution Problems
Quinn: If you’re developing software for macOS your goal is to avoid trusted execution entanglements. You want users to install and use your product without taking any special steps. If, for example, you ship an app that’s blocked by Gatekeeper, you’re likely to lose a lot of customers, and your users’ hard-won trust.[…]If you launch […]
Unity Store Bans VLC
Martin Finkel (via Hacker News): After months of slow back-and-forth over email trying to find a compromise, including offering to exclude LGPL code from the assets, Unity basically told us we were not welcome back to their Store, ever. Even if we were to remove all LGPL code from the Unity package. Where it gets […]
BBEdit 15
Bare Bones Software (Mastodon): A new Minimap palette shows a high-level overview of the active text document. This facilitates visualization of the document’s overall structure, as well as navigation within larger documents. I love the minimap in recent versions of Xcode, but I’ve not found myself using the BBEdit version much. It’s in a floating […]
Mac App Sandboxing Interferes With Drag & Drop
Wade Tregaskis: Merely inspecting the UTIs in the pasteboard is fine – that doesn’t interfere with anything. So if all you care about is if any kind of file (or folder) is being dragged, you’re set. But if you want to only react to some types of files or folders, you need to know more. […]
SwiftData Fetching Pending Changes
Keith Harrison: If you don’t want the pending changes included in the fetch results you should be able to override the default by setting includePendingChanges to false in the fetch descriptor[…] Unfortunately, I don’t seem to be able to get that to work using iOS 17.2 (FB13509125). The pending change is always returned in the […]