My primarily background is the .NET enviornment... so please excuse me if I am not using the right term here.
In .NET, I could strongly type my arrays.
Example:
Instead of: Dim myObjects() as Object;
I could do: Dim myCarObjects() as Car;
This would give me enhanced supported in the development enviornment, directly from the array and I didn't have to CAST or connect the specific object to a specific defined object...
In my iPhone code so far, I have been using NSArray to hold my custom class objects, and then either defining a holding object of the specific type.. or casting it... primarily to avoid Compiler warning messages (as I don't like having any warnings, as a warning could be an error).
So instead of:
NSArray *_myObjects;
Is there a way to do
Car *_myCars(); or something like that (not sure how to express that since Car *_myCar is a singular definition).
I hope that made sense.
In .NET, I could strongly type my arrays.
Example:
Instead of: Dim myObjects() as Object;
I could do: Dim myCarObjects() as Car;
This would give me enhanced supported in the development enviornment, directly from the array and I didn't have to CAST or connect the specific object to a specific defined object...
In my iPhone code so far, I have been using NSArray to hold my custom class objects, and then either defining a holding object of the specific type.. or casting it... primarily to avoid Compiler warning messages (as I don't like having any warnings, as a warning could be an error).
So instead of:
NSArray *_myObjects;
Is there a way to do
Car *_myCars(); or something like that (not sure how to express that since Car *_myCar is a singular definition).
I hope that made sense.