title: How to assign a value to a BOOL pointer in Objective-C?
body: <p>I'm having a bit of a confusion on how to assign a value to a BOOL pointer? Here's my code:</p>
  
  <pre><code>- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {
      self.latitude.text = [NSString stringWithFormat:@"%f", newLocation.coordinate.latitude];
      self.longitude.text = [NSString stringWithFormat:@"%f", newLocation.coordinate.longitude];
  
      if (!initialBroadcast) {
          initialBroadcast = YES; // Where I'm having troubles
  
          [broadcastTimer fire];
      };
  }
  </code></pre>
  
  <p>The compiler keeps telling me this: <code>Incompatible integer to pointer conversion assigning to 'BOOL *' (aka 'signed char *') from 'BOOL' (aka 'signed char')</code>.</p>
  
  <p>I'd appreciate a clarification on this since I am a nubski.</p>
  
  <hr />
  
  <p><strong>UPDATE</strong></p>
  
  <p>As many of you have pointed out, I am apparently abusing the declaration of a <code>BOOL</code> by using a pointer for it. To be honest, I don't know why I used it, but since I'm new to Objective-C it must have worked for what I was doing so it stuck.</p>
  
  <p>Anyway, I have since changed the declaration to:</p>
  
  <pre><code>//  In .h
  @interface ... {
      BOOL initialBroadcast;
  }
  
  @property BOOL initialBroadcast;
  
  //  In .m
  @synthesize initialBroadcast;
  </code></pre>
  
  <p>So, am I on the right track now?</p>