title: Use a predicate to search a NSMutableArray of Objects
body: <p>I have a collection of contacts I would like to filter: <code>var arraycontacts: NSMutableArray = []</code></p>
  
  <p>arraycontacts contains a large list of FriendModel Objects:</p>
  
  <pre><code>    var friend = FriendModel(
          name: self.contactName(contact),
          phone: self.contactPhones(contact),
          email: self.contactEmails(contact),
          phoneString: self.contactPhonesString(contact)
      )
      self.arraycontacts.addObject(friend)
  </code></pre>
  
  <p>I'd like to be able to use filterContentSearchText, to limit this array to users that match or are LIKE a name string. Basically, I'd like to search by name.</p>
  
  <p>This is my attempt:</p>
  
  <pre><code>func filterContentForSearchText(searchText: String, scope: String = "All") {
      let namePredicate = NSPredicate(format: "name like %@", searchText)
      let term = self.arraycontacts.filteredArrayUsingPredicate(namePredicate!)
      println(term)
  }
  </code></pre>
  
  <p>My above code produces the following error:  <code>this class is not key value coding-compliant for the key name.</code></p>
  
  <p>Obviously, the predicate can't see the name property on my FriendModel object. How can I fix my query?</p>
  
  <p>Thanks!</p>