Hi scuba
I think what you're looking for is a dynamic array. Since dynamic arrays work with objects (they must be moved around via pointers), you have to convert your BOOL's in an object. You can do this e.g. with NSNumber.
Code:
NSNumber* myvalue = [NSNumber numberWithBool: TRUE];
If you compare Objective-C with javascript you have to be aware, that in Objective-c you're very close to the hardware. In
js everything is boxed in an object. It's all simulated in a virtual machine and a garbage collector's there collecting all the objects you lost. Here you're dealing with real memory and you need to take care yourself of everything.
Welcome to the real world
Like Scotty mentioned, you could use C-Arrays. But thats not very comfortable in my opinion because you can't dynamically extend the array.
If you need just a fixed size array, do this:
Code:
BOOL myValues[] = {TRUE, FALSE, TRUE};
Daniel