topgun
topgun

Reputation: 2573

Regarding NSPredicate and NSMutableArray deep copy

I am trying to copy NSMutableArray which is based of my Registration NSMutableArray Class and trying to filter a boolean. The concern is, since the nsmutablearray is from the class, each time I try to alloc and initwitharray:[self person] man]; where man is a nsmutablearray it doesn't allow me to do it. Is this functionality only localized or can be globally utilized as well? Or am I missing something here?

Thanks.

Upvotes: 0

Views: 144

Answers (1)

Michael Frederick
Michael Frederick

Reputation: 16714

You have to make sure that "man" is declared as a property of "[self person]". i.e. in the header of the class that [self person] is an instance of,

@property (nonatomic, retain) NSMutableArray *man;

and in the implementation:

@synthesize man;

Upvotes: 1

Related Questions