I want to use the NSPredicate to get Objects with a certain value which is true.

For example: I want all objects (the world object) which has color green is selected.

My data looks like this

NSArray(
    NSObject(
        string1 = 'hello',
        string2 = 'hello',
        NSArray(
            NSObject (
                  color: green
                  isselected: false
            ),
            NSObject (
                  color: red
                  isselected: false
            ),
             NSObject (
                  color: red
                  isselected: true
            ))
    )
    ,
      NSObject(
        string1 = 'world',
        string2 = 'world',
        NSArray(
            NSObject (
                  color: green
                  isselected: true
            ),
            NSObject (
                  color: red
                  isselected: false
            ),
             NSObject (
                  color: red
                  isselected: false
            )
    ))
)

Related posts

Recent Viewed