title: Using enums as parameters in an external file in Objective-C?
body: <p>I have an enum named RandomEnum in file foo.h:</p>
  
  <pre><code>// foo.h
  typedef enum RandomEnum {
    ran_1 = 0,
    ran_2
  } RandomEnum;
  </code></pre>
  
  <p>In another file, bar.h, I'm trying to use RandomEnum as a parameter type:</p>
  
  <pre><code>// bar.h
  #import "foo.h"
  
  @interface bar : NSObject {}
    -(RandomEnum)echo:(RandomEnum)ran;
  @end
  </code></pre>
  
  <p>However, the compiler doesn't seem to recognize RandomEnum. Is doing this even possible?</p>
  
  <p>Compiler Error:</p>
  
  <pre><code>error: expected ')' before 'RandomEnum'
  </code></pre>
  
  <p>Edit: Added code for foo.h for clarification</p>