Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No (understandable) migration documentation for NSTableView binding #693

Open
timothyarmes opened this issue Nov 12, 2020 · 0 comments
Open

Comments

@timothyarmes
Copy link

I'm trying to migrate to the latest version, but I can't figure out how to do the equivalent of this code:

        documentController.myarray.bind(to: tableView, animated: true) { items, index, tableView in
            let observableItem = items[index]
            
            let view = RecentTableCellView()
            view.url = observableItem.url
            
            observableItem.openStatus.observeNext { openStatus in
                view.infoIconView.openState = openStatus
            }.dispose(in: view.bag)
           
            return view
        }

I've been though the migration guide, but I still can't figure it out. I can no longer pass in a closure, but I can's understand how else to do it.

It would be great if the migration guide could offer more help in this respect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant