Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
NSNotFound does not prevent selection in develop branch #179
Crash with NSRangeException.
Can be fixed by adding i check in _selectItemAtIndex.
if (notifiesWillSelect) index = [delegate gridView:self willSelectItemAtIndex:index]; if (notifiesWillSelectMultitouch) index = [delegate gridView:self willSelectItemAtIndex:index numFingersTouch:numFingers]; if (index == NSNotFound) return; [_selectedIndices addIndex:index];
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Looks like the right fix to me— never trust the user ;o)
On 2012-11-13, at 9:20 AM, rassol firstname.lastname@example.org wrote: