supermarin / ObjectiveSugar

ObjectiveC additions for humans. Ruby style.
MIT License
2.17k stars 190 forks source link

Fix keepif #82

Closed supermarin closed 10 years ago

supermarin commented 10 years ago

Thanks @johnno1962 for pointing out the bug.

I couldn't merge the PR since the branch was already deleted. The current implementation uses NSPredicate instead of manual iteration.

supermarin commented 10 years ago

@johno1962 would appreciate if you can confirm it works with master

johnno1962 commented 10 years ago

Looks fine now. Thanks for sorting this out, NSPredicate is definitely the way to go.