I want to transport an array / NSArray of a particular container across a few methods from different classes. In C++, I’d use something like a Vector of structs.
The container could be represented in a struct like this:
struct test
{
NSString * a;
NSString * b;
NSNumber * c;
}
The container basically needs to hold some strings and numbers.
Is there an alternative to using structs in Objective C? Is there some other “container” that I could use to send data?
I would recommend creating a simple object, something like this (compiled in my browser):