Tuesday, October 20, 2026

Selection and Focus in Golden Gate

Howard Oakley:

Now move the pointer to the right edge of the list of folder contents, just far enough to the left to avoid moving the window divider, but not so far as to fully select items from within that folder. Click there and the item will be selected, but in grey, the same as would appear if it had been fully selected but its window was no longer in focus. At this stage, the original folder will still be fully highlighted, as if nothing had been selected inside it, but you can drag that grey unfocussed selection to include other items inside the folder.

On my Mac, if I click on a file icon in the second column, the first column retains focus. The second column only gets focus if I click on a filename (or even farther to the right).

Now using the up and down arrow keys doesn’t move within the items inside that folder, but back with the fully highlighted folder. With a few of the items inside that folder in grey, so they’re selected but not in focus, press the spacebar for a QuickLook preview, and you’ll see the greyed items, not the folder that’s still fully selected to the left.

[…]

In other situations, this becomes infuriating.

In my log browser LogUI, separation of selection from focus can leave you clicking wildly without being able to select log entries.

Previously:

Update (2026-10-21): Philip Savoulidis:

I too was wondering if there was something peculiar with my Mac. Focus seems so broken in Golden Gate that I was expecting macOS reviews to mention it. In this regard, I am glad to see focus problems mentioned here.

The behaviour seems inconsistent. For example, in Finder and Mail the sidebar does not gain focus on click, but it does in Contacts and NetNewsWire (a third-party app). The Passwords app seems like the worst offender: the password list itself does not gain focus on click (e.g. click the search field then click an item and focus remains in the search field).

I spent some time investigating this, and I think it comes down to a SwiftUI bug. List and Table in SwiftUI are affected. Both use NSTableView under the hood, but they never become first responder on click.

But I don’t think NSBrowser is built on SwiftUI, so there are probably multiple issues here.

Update (2026-10-26): Howard Oakley:

That evidence implies that the failure to change focus resulted from a bug in AppKit, which in those specific circumstances didn’t go through the correct state changes, omitting Began, Possible and Cancelled. The Finder still selected the item I had clicked, and passed that to QuickLook for its preview, but failed to change the focus, affecting future actions.

[…]

This bug isn’t consistent, though. While I experience it frequently in the Finder, and it affected a SwiftUI List view in LogUI, others have different experience, and many haven’t come across it in the Finder at all. I have several other apps that use List views in SwiftUI, but LogUI is the only app so affected.

[…]

Given the strong rumours that Apple is about to announce a touchscreen MacBook Pro, I wonder if there are been provisions made to support that in AppKit resulting in a new bug.

8 Comments RSS · Twitter · Mastodon


This sounds like something people have been complaining about in SwiftUI. Is Apple bringing SwiftUI to more parts of the system, like the Finder?


DiscoPirateBunny

Selection and focus actually haven't been tied together since pretty much the advent of Cocoa. That is, controls like text fields and tables can have selection independent of whether they are focused (or in Cocoa parlance, whether they are the first responder). Traditionally, a mouse down inside a control should shift focus (first responder) to the new target before actually doing whatever that control would do; what's happening here is that clicks are for some reason not always changing focus as they should. (Fun tidbit: you can command-click on an inactive window to intentionally interact without actually giving the window focus). The tab key, of course, cycles the focus through the various controls in the active window.

Of course, iOS started without any concept of focus, and then slowly attempted to re-learn all the lessons macOS figured out about selection and focus decades prior, so its concept of focus is very, um, blurry? So as more and more iOS developers, designs, and code move to the Mac, the situation just gets worse. Finder shouldn't have any excuses though.


I don’t think they put SwiftUI under NSBrowser. It still uses NSCell. Probably tinkering with it for touch Macs. I’ll retract all my bugs i filed against it if maybe they just don’t touch the thing.

If the window is foreground active and the last column has a gray selection, it shouldn’t have a selection at all. Selection and focus should alway be on the last column (with the exception of a leaf column). When focus/selection moves to a previous column the last column is supposed to drop off. If the last column has gray selection and the previous column has blue selection that is a a bug. or maybe not because Apple is on some other shit lately.


I have seen similar focus issues in dialog boxes (completely impossible to handle the actions from the keyboard, at best the system beeps at you). Or Preferences panel of some apps (Safari Technology Preview just yesterday).

How does that ever get into a release?


something, something, Golden Gate fixes Tahoe, something, hand-wave.


I've seen the new Spotlight UI being unwilling to accept keyboard input, and Safari opening new windows in the background. The former is probably unrelated, but the latter _might_ be related.

Generally, something seems quite broken about "Mission Control", for lack of a more precise term. I've found kickstarting Dock (`launchctl kickstart -k gui/$(id -u)/com.apple.Dock.agent`) occasionally helps as of 26.0.1. Haven't checked if the 26.2 betas fix it.


I've been noticing issues like this stacking up for years now, starting at the very least with Big Sur. It's one of the main reasons I don't want to update macOS. Every version it gets worse, and pretty much nothing ever gets fixed. Every time the UI doesn't work properly or follow its own conventions, it's another little cut, and I experience hundreds of them every day now.


All Mac OS updates have these kinds of issues, but they're usually rare in the real world or affect only edge cases. Golden Gate is the first Mac OS X release I can remember with obvious bugs that affect most users and should have been caught in even the most cursory QA process.

I installed it on my work Mac yesterday, and boy, it sucks. For example, Mission Control/Spaces are just flat-out broken.

This is the worst OS X release I've ever had the displeasure of using. In fact, it's worse than any pre-X releases.

Leave a Comment