I could really use some help with macOS UI work for this Mastodon client I'm working on. I'm struggling ridiculously with the core concept of NSTableView cell resizing.
Please boost.
I could really use some help with macOS UI work for this Mastodon client I'm working on. I'm struggling ridiculously with the core concept of NSTableView cell resizing.
Please boost.
I think, as in iOS UITableView, you would use implement NSTableViewDelegate with tableView(_:heightOfRow).
https://developer.apple.com/reference/appkit/nstableviewdelegate/1529684-tableview
I'm sure you probably have already found this, but Ray Wenderlich has a NSTableView tutorial here:
https://www.raywenderlich.com/143828/macos-nstableview-tutorial
@erico it doesn't behave as it's documented at all, as it was designed before auto-layout was implemented, and they interact in such insane ways you need to be really in tune with the intricacies to get it to work consistently.
I have it "working", but it doesn't work properly on resize, and some toots will be the wrong size for no reason, while others are fine...
@erico also NSTableView does not support the premise of estimated heights and UITableViewAutomaticDimension.
I've found hacks that try to implement this, but none of them work in the general case, and it's driving me totally insane!
@erico I appreciate the feedback but I have also searched for this for the last almost two weeks in Google as well, and tried very many things, lol.
The problem is that height measurement is so very inconsistent none of these approaches work, as I have no fucking idea what the random lifecycles are that are fighting each other.