Interface and Implementation Class QUESTION
I have a question! I HAVE ATTACHMENTS (SCREEN SHOTS TOO)
In my interface class(Shapes.h) I have declared a protocol for a square and a circle class. so basically i have two interfaces in one file!
So basically my Shapes.h class looks like this
#import <Foundation/Foundation.h>
@interface circle : NSObject {
// objects here
}
-(void) draw
@interface Square: NSObject{
//objects declared here
}
//Prototypes of the function.
AS YOU CAN SEE I HAVE DECLARED INTERFACES OF 2 CLASSES IN ONE FILE Shapes.h
Now my second file that i named "indirection.m" (the implementation class)
has my implementation code that actually describes my interface.
YES, i have imported the "Shapes.h" in "indirection.h"
BUT HERE IS THE ISSUE WHEN I CLICK ON BUILD AND GO IT SAYS "CANNOT FIND FILE OR FOLDER SHAPES.H. I have the right names, right spellings . I DONT KNOW WHATS UP WITH THAT?
anyone with an answer or suggestion PLEASE PLEASE PLEASE lemme know!
Can i have 2 interface descriptions in one file? is that fine or do u think i should make do different .h files (interface) for each interface class.
THanks
|