I would like to have an NSArray or NSMutableArray that always shows a filtered representation of the dataset. That is, if the filter is set to "show me things with the letter a" and the "blah" element is added, this element will automatically be displayed in the list. However, if "bluh" was added, it will not appear in the filtered list (but it will still be present in the underlying dataset).
I see that there are filters for NSArray and NSMutableArray, but these are single shot methods. That is, the filter occurs when you call the method and never again (unless, of course, you again called the filter method).
I'm from the Java world, I used Glazed Lists for this kind of thing. I was hoping for a similar solution, baked in Cocoa.
source
share