I am programming an iPhone game which has items laid out on a grid. Each item is represented by an object, and I want to use a 2D array to represent the contents of the grid. Since I will need to be passing the array through methods, I have attempted to declare it as:
MyClass*** grid;
and have a method to return it as:
-(MyClass ***) {
return grid
}
But before even compiling i get this error:
Pointer to non-const type 'MyClass *' with no explicit ownership.
What does this mean, and why would it happen?