11 posts tagged ‘Cocoa’
Swift Concurrency in Real Apps
Bryan Jones: Consider this code, wherein we create a custom NSTableColumn that uses an image instead of a String as its header. Holly Borla posted a fix that special-cases NSObject.init(): Now, overriding NSObject.init() within a @MainActor-isolated type is difficult-to-impossible, especially if you need to call an initializer from an intermediate superclass that is also @MainActor-isolated. […]
Why Can’t iOS Have Smart Folders?
Collin Donnell: The only apps I know about that have added them for both macOS and iOS are Reminders and Notes, although I’ve found the implementation of them to be a bit weird. In both of those, you can’t add sub-conditions, so you can say all or any of a list of conditions, but you […]
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 […]
Automatic Grammar Agreement
WWDC 2021: Discover how the latest updates to Foundation can help you improve your app's localization and internationalization support. Find out about the new AttributedString, designed specifically for Swift, and learn how you can use Markdown to apply style to your localized strings. Explore the grammar agreement engine, which automatically fixes up localized strings so […]
SpamSieve 3.0.3
SpamSieve 3.0.3 is another maintenance update. The main focus is working around various cases where Apple Mail doesn’t behave properly, resulting in hangs or messages not being filtered or trained. Some interesting bugs were: Some customers were seeing a crash when SpamSieve updated its Dock icon badging. It turns out that setting NSApplication.applicationIconImage will throw […]
State Restoration With NSSecureCoding on Sonoma
Milen Dzhumerov: AppKit state restoration behaviour changed on macOS 14 Sonoma in a subtle way that can lead to apps not restoring their state correctly. The change can lead to silent breakages which can be hard to debug.[…]Violations can now arise in any -restoreStateWithCoder: implementations, so they need to be audited.Check for any usages of […]
Selecting Multiple Tabs in Safari
John Gruber (video): Just like making multiple selections in a list view, Shift-click will select an entire range at once, and Command-clicking lets you select (and deselect) noncontiguous tabs. […] Once you have multiple tabs selected, you can drag them together to create a new window, or do things like close them all at once. […]
Mac Menu Bar Icons and the Notch
Jesse Squires (Mastodon): On my 13” Intel MacBook Pro, the icons reached to about halfway across the screen. On the 14” M3 MacBook Pro, ironically a machine with a larger display, at least 3 icons get hidden. This “design” (or lack thereof) is so dumb. It is utterly ridiculous to me that this is still […]