I'm trying to follow the Stanford iPhone class and am having a problem with the import command. <-- Total n00b question
Basically, I have a implementation file called "WhatATool.m" and we were told to create a custom class called "PolygonShape".
I did just that, via New File... > Objective C Class >
I set the file name as "PolygoneShape.m"
Kept the box checked to create the header file
Kept the box checked to Target "WhatATool"
And then at the top, right next to #import <Foundation/Foundation.h>, I put the line #import <PolygonShape.h>. But when I try to compile it, it says:
"error: PolygonShape.h: No such file or directory"
Why can't it find it? Do I have to do anything else to get it to work? The .m and .h files are both listed under the "source" folder on the left.
I assume that it's got to be something stupid and small... but I just can't figure out what's going on. Structurally, all these files are in the same directory. Any thoughts?
Basically, I have a implementation file called "WhatATool.m" and we were told to create a custom class called "PolygonShape".
I did just that, via New File... > Objective C Class >
I set the file name as "PolygoneShape.m"
Kept the box checked to create the header file
Kept the box checked to Target "WhatATool"
And then at the top, right next to #import <Foundation/Foundation.h>, I put the line #import <PolygonShape.h>. But when I try to compile it, it says:
"error: PolygonShape.h: No such file or directory"
Why can't it find it? Do I have to do anything else to get it to work? The .m and .h files are both listed under the "source" folder on the left.
I assume that it's got to be something stupid and small... but I just can't figure out what's going on. Structurally, all these files are in the same directory. Any thoughts?