No se puede agregar un objeto a una matriz NSMutableArray

@interface SimataDetailViewController () 

@property Simata *simata;

@property (nonatomic, copy) NSMutableArray *simataList;

@end

@implementation SimataDetailViewController

@synthesize simataDataController=_simataDataController;
@synthesize category=_category;
@synthesize simata=_simata;
@synthesize simataList=_simataList;

#pragma mark - Managing the detail item



- (void) getSimataForCategory: (NSString *) inputCategory {

    unsigned count = [self.simataDataController.masterList2 count];


    while (count--) {

        if ([[[self.simataDataController objectSimataInListAtIndex:count] categoryCode] isEqual:inputCategory]){
            self.simata= [self.simataDataController objectSimataInListAtIndex:count];

            [self.simataList addObject:self.simata];                       
        }

    }

    NSLog(@"count, %u", [self.simataList count]);


}

Hola, esta es mi primera publicación, así que ten paciencia.

Estoy intentando agregar un objetoself.simata a la matrizself.simataList pero la matriz permanece con cero objetos. El objetoself.simata no esnil y no recibo ningún error.

¿Qué estoy haciendo mal

Respuestas a la pregunta(4)

Su respuesta a la pregunta