title: Trying and failing to use BOOL in iPhone app
body: <p>I have the following method where I am trying to determine of someone is associated with a practice.  Coming from C# this seemed like the right way to do this, but I'm getting some warnings/errors here.</p>
  
  <pre><code>- (BOOL) isAvailablePractice:(NSString*)practiceId
  {
      BOOL *check = NO;
  
      for(NSUInteger i = 0; i &lt; [self.practices count]; i++)
      {
          EHRXOption *o = [self.practices objectAtIndex:i];
          if([o.id isEqualToString:practiceId])
              check = YES;
      }
  
      return check;
  }
  </code></pre>
  
  <p>On the line I set check = YES I get the following warning</p>
  
  <pre><code>Incompatible integer to pointer conversion assigning to 'BOOL *' (aka 'signed char *') from 'signed char'; 
  </code></pre>
  
  <p>on return check I get this error</p>
  
  <pre><code>Incompatible pointer to integer conversion returning 'BOOL *' (aka 'signed char *') from a function with result type 'BOOL' (aka 'signed char'); dereference with *
  </code></pre>
  
  <p>The way I understand this error, and I could be wrong is that if I put a * in front of return *check it would actually be returning a new value and not the one I've been working with.</p>
  
  <p>I'm really not understanding how Objective C uses the BOOL value.</p>