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

RZFilteredCollectionList - indexPathOfObject: bug #72

Conversation

bsmith11
Copy link
Contributor

Fixed bug where calling indexPathOfObject: was returning an incorrect indexPath if the object is in the source list, but not the newly filtered list. I added a test as well.

… indexPath if the object is in the source list, but not the newly filtered list
@ZevEisenberg
Copy link

@bsmith11 might want to also test that it works when the filtered list contains the desired object, since there is no code currently testing that.


return [NSIndexPath indexPathForRow:filteredRow inSection:filteredSection];

if ([sectionIndexSet containsIndex:indexPath.row]) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#nth single point of return, per style guide.

@alexrrouse
Copy link
Contributor

@bsmith11 Has my blessing. Make Zev's updates if you have time but otherwise good to have this merged.

bsmith11 added a commit that referenced this pull request Nov 5, 2015
…ion-list-indexpath-of-object

RZFilteredCollectionList - indexPathOfObject: bug
@bsmith11 bsmith11 merged commit c7e9feb into develop Nov 5, 2015
@bsmith11 bsmith11 deleted the bugfix/bsmith11/filtered-collection-list-indexpath-of-object branch November 5, 2015 16:38
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