How would I go about declaring an array in the .h file of an unknown size that I will calculate say in the a function inside the class ?
For example, I might have 20 or 30 NSArrays (just an example, not what I need), but I won't know the exact number when the class is first called
in implementation file..
-(id) init {
if self = ..
number_of_arrays = 50; // this can be whatever value
}
in .h:
int number_of_arrays;
NSArray *arrays_of_unknown_size[number_of_arrays]; // but number of arrays is not init !
Also, what is the significance of NSArray **arrays ? Would I be able to declare that in the h file, and then in the .m file, declare the actual size ?
thanks !