I have an NSObject with 2 property
@interface Entity : NSObject {
NSNumber *nid;
NSString *title;
}
I have 2 arrays with Entity objects in it and I want to compare these two on nid with a predicate
array1: ({nid=1,title="test"},{nid=2,title="test2"})
array2: ({nid=2,title="test2"},{nid=3,title="test3"})
2 arrays have nid with value 2, so my output should be
array3: ({nid=2,title="test2"})
so I can create an array with a suitable nid
source
share