I have a CFSocket callback method that is declared like this:
void socketCallback(CFSocketRef cfSocket, CFSocketCallBackType type, CFDataRef address, const void *data, void *userInfo)
{
if (_scanningInProgress) {
}
}
And the problem is that I get an "Use of undeclared identifier '_scanningInProgress' error. I am a little confused because if I try something like this:
-(void)scan:(bool)isScanning
{
_scanningInProgress = isScanning;
}
Then everything is working just fine. What is causing the error? Here is the .h file declaration for the property:
@property bool scanningInProgress;