Skip to content

Add support for updating NSTableView rows#24

Merged
tonyarnold merged 1 commit into
tonyarnold:masterfrom
interstateone:nstableview-support
Apr 5, 2018
Merged

Add support for updating NSTableView rows#24
tonyarnold merged 1 commit into
tonyarnold:masterfrom
interstateone:nstableview-support

Conversation

@interstateone
Copy link
Copy Markdown

@interstateone interstateone commented Apr 5, 2018

This implements update and apply methods for NSTableView. It also moves BatchUpdate to a new file and keeps the initializers separate for each platform because of the different IndexPath properties that UITableView (row) and NSTableView (item) use.

This branch doesn't implement support for NSCollectionView or NSOutlineView because I don't have an immediate need for them, and so I don't have something built to test them with. NestedBatchUpdate could probably be moved as-is to BatchUpdate.swift in order to support NSCollectionView updates.

This implements update and apply methods for NSTableView. It also moves BatchUpdate to a new file and keeps the initializers separate for each platform because of the different IndexPath properties that UITableView (row) and NSTableView (item) use.
@tonyarnold
Copy link
Copy Markdown
Owner

This is great, thanks @interstateone! I'll add NSCollectionView because I'm a completionist.

I have need of NSOutlineView, but it's going to take some more complex diffing I fear.

@tonyarnold tonyarnold merged commit e833b11 into tonyarnold:master Apr 5, 2018
@interstateone
Copy link
Copy Markdown
Author

Awesome, thanks! I just realized that I forgot to update the README in that commit. 😆

@tonyarnold
Copy link
Copy Markdown
Owner

That's OK, I've done it in master. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants