Skip to content

Conversation

nlutsenko
Copy link
Contributor

Split into multiple commits, but will squash together after review.
Depends on #403

}
} comparisonBlock:^NSPredicate *(NSComparisonPredicate *comparison) {
NSPredicateOperatorType newType;
NSComparisonPredicateModifier newModifier = comparison.comparisonPredicateModifier;
SEL customSelector;
SEL customSelector = nil;
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to be NULL, not nil. SEL is not an object type.

@@ -86,17 +86,11 @@ + (NSPredicate *)_negatePredicate:(NSPredicate *)predicate {
}
return [NSCompoundPredicate andPredicateWithSubpredicates:newSubpredicates];
}
default: {
Copy link
Contributor

Choose a reason for hiding this comment

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

I still like having default use cases here. It protects us from some stupid person coming along with a custom predicate and destroying anything. I know it's less optimal, but silent failures are bad.

nlutsenko added a commit that referenced this pull request Oct 13, 2015
@nlutsenko nlutsenko merged commit cc912d7 into master Oct 13, 2015
@nlutsenko nlutsenko deleted the nlutsenko.warnings branch October 13, 2015 22:17
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.

3 participants