Skip to content

Instantly share code, notes, and snippets.

@rustle
Created May 10, 2013 18:46
Show Gist options
  • Save rustle/5556512 to your computer and use it in GitHub Desktop.
Save rustle/5556512 to your computer and use it in GitHub Desktop.
Seems like ACAccountType needs a better isEqual: implementation
// Works fine
accounts = [accounts filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(ACAccount *evaluatedObject, NSDictionary *bindings) {
return [[[evaluatedObject accountType] identifier] isEqualToString:[self.accountType identifier]];
}]];
// No dice
accounts = [accounts filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(ACAccount *evaluatedObject, NSDictionary *bindings) {
return [[evaluatedObject accountType] isEqual:self.accountType];
}]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment