I am trying to list as part of my method signature, and I get this disgusting error in my .h file:
Declaration of 'enum CacheFile' will not be visible outside this function
I have this in my h file:
@interface DAO : NSObject typedef enum { DEFAULT_CACHE_FILE, WEB_CACHE_FILE } CacheFile; -(NSMutableArray *) parseFile :(enum CacheFile) file; @end
My .m file:
-(NSMutableArray *) parseFile:(CacheFile) file{ ..... .... }
And I get this warning in my m file:
Conflicting Parameter types in implementation of 'parseFile:':'enum CacheFile' vs 'CacheFile'
What am I doing wrong?
source share