I am having a strange error in the program. However, I do not find any syntax error. The error is: expected ')' before 'NSRect'. How can I get rid of it? I get those errors in line 1 and 2. I also tried importing Foundation/NSGraphics.h. It did not work.
#import <Foundation/Foundation.h>
@interface MyQuartzView : NSObject {
}
- (id)initWithFrame:(NSRect)frameRect;//line 1
- (void)drawRect:(NSRect)rect;//line 2
@end