title: Using enum in Objective-C?
body: <p>Is this the correct (or even a valid way) to use emums in Objective-C? i.e. The menuItem is not used but just defines a list add=1, load=2, list=3 etc.</p>
  
  <pre><code>enum menuItems {
      add = 1    ,
      save       ,
      load       ,
      list       ,
      removeAll  ,
      remove     ,
      quit       
  };
  
  int optionSelect;
  
  scanf("%d", &amp;optionSelect);
  
  switch (optionSelect) {
      case add: 
          //...
          break;
  }
  </code></pre>
  
  <p>cheers gary</p>