title: How can I perform an NSArray filteredArrayUsingPredicate where the predicate is a method?
body: <p>How can I perform an NSArray filteredArrayUsingPredicate where the predicate is a method?  That is what would a simple code example look like here?</p>
  
  <p>I've been trying to go through the predicate doco and getting a little confused.  I can see how it works for simple checks, but if I have a check which requires a few lines of objective-c code to implement what would the code look like to effectively:</p>
  
  <ul>
  <li>filter an NSArray using filteredArrayUsingPredicate</li>
  <li>predicate would be a method which somehow takes an input variable(s), performs whatever checks and balances and then gives a TRUE/FALSE back as a return value re whether the item should be filtered or not</li>
  </ul>
  
  <p>thanks</p>