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...