class MyClass {
var result: Bool
init(result: Bool) {
self.result = result
}
}
I have an array([MyClass]) in my ArrayController connected via binding and I need to filter this array by property result.
For example half of these objects have result as false, I only want to display these items which have result == true, but it must be done with NSPredicate and I don't have any clue how to make this predicate, any ideas?
To make it clear, I'm required to use filterPredicate variable of NSArrayController to filter this array.