Finder’s Elite Eliding
But I also want to show things that Finder does well, and this might be something no one does nearly as thoughtfully: text truncation.
[…]
Finder position the tooltip exactly atop the existing text. I think this is really clever: it avoids overlapping other useful information, and makes it faster to reorient yourself.
[…]
Lastly, Finder only shows the tooltip when it’s needed.
Previously:
3 Comments RSS · Twitter · Mastodon
These style of tooltips are actually provided by NSTableView for any app that uses it. All that's required is implementing the -tableView:shouldShowCellExpansionForTableColumn:row: delegate method, and you'll get this behavior for free on all your text fields (plus there's APIs to implement it for custom cell views as well).
Yea. These behaviors are not exclusive to Finder. Any AppKit app can do all this, easily.
But don’t worry Apple is working hard fucking everything up so it won’t be long before native apps suck just as much. Thanks Schaef
I was about to say what Brian said. It's completely possible that zero lines of code are needed beyond the minimum necessary to just hook up the framework's smarts.
This is why it's so concerning that SwiftUI, as a framework, has so little smarts. Using the old NeXT metaphor about starting your building at the 10th floor wth a good framework, you largely start in the third underground parking garage.