254 posts tagged ‘Mac’
Why % CPU in Activity Monitor Isn’t What You Think
Howard Oakley: When macOS loads two of those E cores with low QoS threads, it sets them to run at a low frequency to make the most of their energy efficiency. When it loads two E cores with threads that were intended to be run on P cores, as they have a high QoS, it […]
High Power Mode for M4 Pro Macs
Andrew Cunningham: Last year’s M3 Pro chip was a departure from the M1 Pro and M2 Pro. Compared to the M2 Pro, it came with more E-cores but fewer P-cores, as well as fewer GPU cores and less memory bandwidth. As we wrote at the time, this meant that the architectural improvements to M3 mostly […]
Problematic Swift Concurrency Patterns
Matt Massicotte: I think the vast majority of the time, a global actor should be applied to the type as a whole, not to individual properties.[…]But, while detached does prevent isolation inheritance, it also does other stuff too. Detached tasks do not inherit priority or task-local values. Instead, think about a nonisolated function.[…]I think MainActor.run […]
Swift Format in Xcode 16
Sarah Reichelt (Mastodon): In Xcode 16, Apple quietly introduced the ability to format your Swift files using Swift Format. I’m a long-time user of SwiftLint, but having such a tool built into Xcode would be a great convenience, so I decided to give it a try. Here is my description of why I use such […]
Data Tracking and Notifications in Core Data and SwiftData
Fatbobman (Mastodon): [prepareForDeletion is called] when the managed object is about to be deleted, typically used for cleaning up resources or manually managing relationships. Note that this method is triggered before validateForDelete. If the deletion operation fails due to validation failure, changes made in this method may be rolled back.[…]However, because these operations are extensions […]
Sequoia No Longer Supports QuickLook Generator Plug-ins
Howard Oakley: Prior to macOS 10.15 Catalina in 2019, the display of Thumbnails was supported by the QuickLook framework. From Catalina onwards, this is provided by a new framework named QuickLook Thumbnailing. The older framework is documented here, and had been deprecated for some years. Its replacement is documented here. To extend these, the older […]
How to Highlight Text Fragments When Linking
Paul Kafasis: In recent months, I’ve begun to notice that results from web searches often highlight specific text on the page to which they’re linking. The web page is also scrolled to the relevant content. It’s quite helpful! A quick investigation showed this is accomplished by appending a bit of code, #:~:text= to the URL […]
Exporting Kindle Highlights for Personal Documents
I’ve long used the Send to Kindle app to upload documents for reading on my Kindle Oasis. Unlike with books, I usually don’t care about saving notes and highlights for these, so I haven’t tried doing that in a while. However, I recently read a long document where I did make extensive highlights. Then I […]