Created
May 10, 2013 18:46
-
-
Save rustle/5556512 to your computer and use it in GitHub Desktop.
Seems like ACAccountType needs a better isEqual: implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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