Add data in NSMutableArray from from loop
I have a for loop where I can obtain retrieved data from an imported file.

    -(NSArray *) csvArray2CompaniesArray:(NSArray *) csvArray
    {
        int i=0;
            
        NSMutableArray *ma = [[NSMutableArray alloc] init];
        
        for (NSArray * row in csvArray)
        {
            if (i>0)
            {
                Company *_company = [[Company alloc] init];
                
                _company.name = [row objectAtIndex:0];
                _company.address = [row objectAtIndex:1];
                _company.telephone = [row objectAtIndex:2];
                
                [ma addObject:_company];
    
                //[_companyAddress addObject:[row objectAtIndex:1]];
                //[_companyAddress addObject:_company.address];
            }
            i++;
        }
        return (NSArray *) ma;   
    }

I would like to save the data generated in the loop in a global NSMutableArray that I created called "companyAddress"
I tried with

    [_companyAddress addObject:[row objectAtIndex:1]];

or

    [_companyName addObject:_company.address];

when I try to print on the screen the contents of _companyAddress it just outputs the last line contained from "_company.address" so I suppose the data in the NSMutableArray is overwritten for each loop instead of being added.

Can anyone tell me if there is any way to add data properly?

Thank you in advance.
Add data in NSMutableArray from from loop
===

I have a for loop where I can obtain retrieved data from an imported file.

    -(NSArray *) csvArray2CompaniesArray:(NSArray *) csvArray
    {
        int i=0;
            
        NSMutableArray *ma = [[NSMutableArray alloc] init];
        
        for (NSArray * row in csvArray)
        {
            if (i>0)
            {
                Company *_company = [[Company alloc] init];
                
                _company.name = [row objectAtIndex:0];
                _company.address = [row objectAtIndex:1];
                _company.telephone = [row objectAtIndex:2];
                
                [ma addObject:_company];
    
                //[_companyAddress addObject:[row objectAtIndex:1]];
                //[_companyAddress addObject:_company.address];
            }
            i++;
        }
        return (NSArray *) ma;   
    }

I would like to save the data generated in the loop in a global NSMutableArray that I created called "companyAddress"
I tried with

    [_companyAddress addObject:[row objectAtIndex:1]];

or

    [_companyName addObject:_company.address];

when I try to print on the screen the contents of _companyAddress it just outputs the last line contained from "_company.address" so I suppose the data in the NSMutableArray is overwritten for each loop instead of being added.

Can anyone tell me if there is any way to add data properly?

Thank you in advance.