Why do I get an error before "AT_NAME"?
I am kinda new at this.
I wanted to define a type based on an enum, which has all the directions a sprite can be facing in a game I am making. I defined the enum and typedef in the header for a display file. When I put it between the @interface and @end, I got a syntax error, but when I put it after the @end, I got an error in the .m file that I think has something to do with the #import. Where is the best place to put the typedef in my program: the .m file or the .h file, and where in the file? For now I used #define about 9 times, which is annoying.
I do not want to have to make a new header file for my program.
I wanted to define a type based on an enum, which has all the directions a sprite can be facing in a game I am making. I defined the enum and typedef in the header for a display file. When I put it between the @interface and @end, I got a syntax error, but when I put it after the @end, I got an error in the .m file that I think has something to do with the #import. Where is the best place to put the typedef in my program: the .m file or the .h file, and where in the file? For now I used #define about 9 times, which is annoying.
I do not want to have to make a new header file for my program.
mac os x 10.5, Mac OS X (10.5.8)