You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've started implementing Differ in our app to drive changes to our TableView.
As our app needs to support 10.15+, we cannot use the native DiffableSource implementation.
So using extendingDiff and patch, I realized that the current AppKit extension that applies the patch to the NSTableView is not using the reloadData(forRowIndexes: IndexSet, columnIndexes: IndexSet) when changes are applicable to a single row.
By using Delete and Insert, if the selected row was 4, then it is automatically deselected.
This behavior, instead of using reloadDate(forRow...) makes for a pretty bad UX in our case.
Any suggestions on how to circumvent that? Thanks
The text was updated successfully, but these errors were encountered:
I was able to quickly patch the Diff+AppKit.swift file to look for our use case and issue a reload.
However that patch is far away from being usable in the real world. I would need to further understand the internal mechanics of a Patch structure to provide a usable PR for you to review.
It's on my task list however, and like you 😃, it will take sometime to surface.
Let's keep this issue open until I come up with something.
Hey there,
I've started implementing Differ in our app to drive changes to our TableView.
As our app needs to support 10.15+, we cannot use the native DiffableSource implementation.
So using extendingDiff and patch, I realized that the current AppKit extension that applies the patch to the
NSTableView
is not using thereloadData(forRowIndexes: IndexSet, columnIndexes: IndexSet)
when changes are applicable to a single row.Here's our patch description:
Why is this important?
By using
Delete
andInsert
, if the selected row was 4, then it is automatically deselected.This behavior, instead of using
reloadDate(forRow...
) makes for a pretty bad UX in our case.Any suggestions on how to circumvent that? Thanks
The text was updated successfully, but these errors were encountered: