Hi
I am wondering what the point of arraywithCapacity does when creating a new NSMutableArray
For example below
I know it is supposed to just tell the complier to expect a range of 42 on the array, but then again if it goes over 42 it does not matter. So what is the point of even having it?
I am wondering what the point of arraywithCapacity does when creating a new NSMutableArray
For example below
Code:
NSMutableArray *files;
fiels = [NSMutableArray arrayWithCapacity:42];
I know it is supposed to just tell the complier to expect a range of 42 on the array, but then again if it goes over 42 it does not matter. So what is the point of even having it?
Last edited: