In my header, I declared a few variables as @property (nonatomic) NSInteger *soldWindows;
and used them to keep track of counts, incrementing with _soldWindows++;
. The result consistently came out 8 times what it should be. I figured out my problem was declaring it as a pointer, so I changed it to @property (nonatomic) NSInteger soldWindows;
which solved my problem.
My question is, if it was just storing a memory address, why was the integer value scaled by 8 instead of being an arbitrary address?