title: Can I use an enum as a property in Objective C
body: <p>I saw it is customed to use a boolean property as a flag. something like that:</p>
  
  <pre><code>@property (nonatomic) BOOL commaAlreadyIntroduced;
  </code></pre>
  
  <p>I need something like that but with at least 3 or 4 states.</p>
  
  <p>Can I use an enum?</p>
  
  <p>The standalone enum should look like:</p>
  
  <pre><code>typedef enum stackState{
      empty, oneOperand, operandAndOperator, fullStack
  }stackState;
  </code></pre>