title: Find an integer value in Objective-C enum
body: <p>Is it possible in Objective-C to see if a <code>int</code> value is in a particular <code>enum</code>? For instance, in this enum:</p>
  
  <pre><code>enum  {
    ValidationLoginFailed         = 2000,
    ValidationSessionTokenExpired = 2001,
    ValidationSessionTokenInvalid = 2002,
    ValidationEmailNotFound       = 2003  
  }; 
  typedef int ValidationStatusCodes;
  </code></pre>
  
  <p>is it possible to see if an arbitrary integer value is in the <code>ValidationStatusCodes</code> <code>enum</code>?</p>
  
  <pre><code>[ValidationStatusCodes contains:intResponseCode]
  </code></pre>
  
  <p>or at least</p>
  
  <pre><code>[self intIsInRangeofEnum:ValidationStatusCodes forValue:intResponseCode]
  </code></pre>