title: Restoring a BOOL inside an NSDictionary from a plist file
body: <p>I have a plist file which contains an array of dictionaries.  Here is one of them:</p>
  
  <p>Fred     Dictionary<br>
  Name     Fred<br>
  isMale   [box is checked]  </p>
  
  <p>So now I am initializing my Person object with the dictionary I read from the plist file:</p>
  
  <pre><code> -(id) initWithDictionary: (NSDictionary *) dictionary {
      if (self = [super init])
      self.name = [dictionary valueForKey: @"Name"];
      self.isMale = ????
    }
  </code></pre>
  
  <p>How do I finish off the above code so that self.isMale is set to YES if the box is checked in the plist file, and NO if it isn't.  Preferably also set to NO if there is no key isMale in the dictionary.</p>