I'm trying to read a file into array, by using mutable array in Objective C like this:
NSCharacterSet *newlineCharSet = [NSCharacterSet newlineCharacterSet];
NSMutableArray *myStr = [data componentSeparatedByCharactersInSet: newlineCharSet];
And this is the warning that I've got :
Incompatible pointer type initializing "NSMutableArray" with an expression of type "NSArray"
The reason why I used NSMutableArray is because later I'm going to convert all the elements inside the array to lowercase. Would it be possible to fix the warning and still satisfy the condition to use mutable array ? Thank you.