All Posts (5,293)
Unit Testing a SwiftUI Query
Helge Heß: I’ve been wondering whether I could unit test a SwiftData Query, i.e. the SwiftUI property wrapper coming w/ SwiftData (in beta6 it is actually a macro). Aka whether I could unit test a SwiftUI view. This requires setting up an execution environment for the view, but surprisingly that actually works 🙂 Here’s the […]
Rescuing Files From Classic Mac OS...with Swift
Jordan Rose: The biggest benefits of doing this project in Swift are very similar to what the benefits would have been for using C++, back in the 90s, but with even more safety. Take directory walking. In C, this looks something like the following: FSIterator *iter; OSStatus err = FSOpenIterator(&directory, kFSIterateFlat, &iter); if (err != […]
No Counter-Strike 2 for Mac
Tim Hardwick (Hacker News): Valve on Monday said it has no plans for a macOS version of the recently released game Counter-Strike 2, the follow-up title replacing the hugely popular FPS Counter-Strike: Global Offensive.[…]Last month’s release of Counter-Strike 2 forced a 26GB update for everyone with CS:GO, including Mac users, but after installation those on […]
Burger King’s Botched Apostrophe Curling
John Gruber: The various “smart quotes” algorithms you get while typing aren’t smart enough to make this contextual distinction — even very good ones — so you need to do it by hand. Here’s how to type them manually[…] Mac Windows Linux Open single quote: ‘ Option-] Alt-0-1-4-5 Use ASCII Close single quote: ’ Shift-Option-] Alt-0-1-4-6 Use ASCII Open […]
The Care and Feeding of Developer ID
Quinn: I regularly see folks run into problems with their Developer ID signing identities. Historically I pointed them to my posts on this thread, but I’ve decided to collect these ideas together in one place.[…]This post focuses on traditional signing identities, where you manage the private key. Xcode Cloud introduced cloud signing, where signing identities […]
Hacking NSAlert Button Appearance
Daniel Jalkut: Notice how the “Bar” and “Baz” buttons do not have a border or background color, making it difficult to know whether they are even buttons at all. The line between Bar and Baz clunks up the interface even more.[…]This exploded view from the Xcode view debugger shows that the top, default button, is […]
Uproot War from Ourselves
“We often think of peace as the absence of war, that if powerful countries would reduce their weapon arsenals, we could have peace. But if we look deeply into the weapons, we see our own minds- our own prejudices, fears and ignorance. Even if we transport all the bombs to the moon, the roots of […]
Murmurations
Xavi Bou has a passion for visualizing the beauty of bird flight paths. (I am enamored by the prints he sells.)