We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong implementation of removeObjectsInArray.
If we pass self object to removeObjectsInArray it will remove half of itself objects.
removeObjectsInArray
Received array must be copied or converted to set. if it's the same object to receiver, then removeAllObjects.
removeAllObjects
- (void)removeObjectsInArray:(NSArray *)other { if (self == other) { [self removeAllObjects]; return; } NSSet *set = [[NSSet alloc] initWithArray:other]; for (id obj in set) { [self removeObject:obj]; } [set release]; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Wrong implementation of removeObjectsInArray.
If we pass self object to
removeObjectsInArray
it will remove half of itself objects.Received array must be copied or converted to set. if it's the same object to receiver, then
removeAllObjects
.The text was updated successfully, but these errors were encountered: