I am having trouble with a BOOL property and I can't quite figure it out.
I have the following set in my .h file:
BOOL myVar;
@property BOOL myVar;
Then in my .m file I synthesize myVar and have a method that set myVar=YES; and also starts a timer. The timer then calls another method that tries to read the value of myVar.
To test for the value of myVar I have:
NSLog(@"The value of the bool is %@\n", (myVar ? @"YES" : @"NO"));
The first loop through the console shows myVar = YES then after that it says NO.
How do I keep it as the value of YES? Is it already YES but my NSLog is wrong? I need to test for YES/NO in that method because the actions taken will vary depending on their value.