title: IOS/Objective C: Coredata NSPredicate with boolean
body: <p>I have a boolean attribute in Coredata named "hide". In the <code>nsmanagedobject</code> file, the variable is an <code>NSNumber</code>.</p>
  
  <pre><code>@property (nonatomic, strong) NSNumber *hide;//bool
  </code></pre>
  
  <p>In some cases, I want to exclude or "hide" items where the value of hide is 1.
  The predicate I am using for this is:</p>
  
  <pre><code>hideClause = @"hide != 1";
  hidePred =  [NSPredicate predicateWithFormat:hideClause];
  </code></pre>
  
  <p>However, the logic is not working as expected.  The FRC is not returning items even when I know for sure the value of hide is not 1.</p>
  
  <p>Can anyone see what might be wrong?</p>