in my .h file I defined:
BOOL *internetActive;
BOOL *hostActive;
and:
@property(nonatomic) BOOL *internetActive;
@property(nonatomic) BOOL *hostActive;
In my .m file I synthesize them and set the values:
switch (internetStatus) {
case NotReachable:{
self.internetActive = NO;
break;
}
case ReachableViaWiFi:{
self.internetActive = YES;
break;
}
case ReachableViaWWAN:{
self.internetActive = YES;
break;
}
}
but I get several warnings. First on every = YES I get
Incompatible integer to pointer conversion to BOOL (aka signed char) from BOOL (aka signed char)
And right after the break statement I get an:
Passing argument 1 of setInternetActive makes pointer from integer without a cast
What does that mean and how do I solve it?
BOOLand you’re using them as plainBOOL. As has been answered already, you don’t want pointers toBOOL. - user557219