New to Objective C so pardon my stupidity,..
I am trying to retrieve my NSIndexSet by calling GetIndexes:MaxCount:IndexRange
Here is my code
const NSUInteger arrayCount = picturesArray.count;
NSUInteger theIndexBuffer[arrayCount];
[picturesArray getIndexes:theIndexBuffer maxCount:arrayCount inIndexRange:nil];
However, in the debugger theIndexBuffer is always showing as -1. When I initialize it with a static number like NSUInteger theIndexBuffer[10], I get a proper instance.
This is probably because it doesnt know what "arrayCount" is at compile time. What is the correct way of doing this?