Cannot change variables in openglview at runtime

Hello, my name is Uwe.
I'm a newbie, my questions are sure not new, please practise lenity.

I explain the Problem by an example:
In the timer selector :
Code Block
float incX = 0.05;
if(_runX)
    {
        if (_increaseX)_rotationX += incX;
        else _rotationX += incX  * -1.0;
        [self setNeedsDisplay:YES];
    }

if runX is initialised with YES the view rotates.
I can change
runX with a toggle button but in drawRect _runX don't change.
2 years ago I had no problem with this issue but I don't know the Xcode version I have used.

I hope to get an answer.
Uwe


Cannot change variables in openglview at runtime
 
 
Q