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

[ASTableView] Use ASTableView tableNode property instead of calling ASViewToDisplayNode #trivial #361

Merged
merged 1 commit into from
Jun 15, 2017

Conversation

maicki
Copy link
Contributor

@maicki maicki commented Jun 14, 2017

We are accessing the tableNode property in ASTableView in the batch fetching mechanism on a background thread. The problem is that we overwrite the tableNode accessor and calling ASViewToDisplayNode what will access the ASTableView on a background thread.

With Xcode 9 Apple added the Main Thread Checker and it will catch this issue. You can try it out within the Kittens example.

Fixes the report from @WymzeeLabs in #345

@maicki maicki requested a review from Adlai-Holler June 14, 2017 01:59
@ghost
Copy link

ghost commented Jun 14, 2017

1 Warning
⚠️ Any source code changes should have an entry in CHANGELOG.md or have #trivial in their title.

Generated by 🚫 Danger

@maicki maicki changed the title Use ASTableView tableNode property instead of calling ASViewToDisplayNode [ASTableView] Use ASTableView tableNode property instead of calling ASViewToDisplayNode Jun 14, 2017
@maicki maicki changed the title [ASTableView] Use ASTableView tableNode property instead of calling ASViewToDisplayNode [ASTableView] Use ASTableView tableNode property instead of calling ASViewToDisplayNode #trivial Jun 14, 2017
@WymzeeLabs
Copy link
Contributor

Cool thanks.

@maicki maicki merged commit 13f6f14 into master Jun 15, 2017
bernieperez pushed a commit to AtomTickets/Texture that referenced this pull request Apr 25, 2018
@maicki maicki deleted the MSFixAccessingTableViewOnNonMainThread branch September 8, 2018 16:35
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

Successfully merging this pull request may close these issues.

None yet

3 participants