Question : Objective-C bizarre non-copile

I have a bizarre non-compile in Obj C

I have an error free frisbee.h. that is second in the list of classes


@interface frisbee {

      int fx,fy;
UIImageView frisImageView;


@end

A also have TestViewController.h attached below
that doesn't compile.
It doesn,t find frisbee "no such file or directory" and I can' see why ?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
//
//  TestViewController.h
//  Test
//
//  Created by James Hancock on 6/27/10.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <frisbee.h>


@interface TestViewController : UIViewController {
	
	IBOutlet UILabel *label1;
	IBOutlet UILabel *label2;
	UIImageView *imageView, *ballImageView, *campFireView;
	
	CGRect myViewFrame;
	CGRect ballViewFrame;
	int XLocation;
	int YLocation;
	int starSizeX;
	int starSizeY;
	UIImage *myImage, *ballImage;
	NSTimer *mainTimer;
	int imgCenterX;
	int timer;
	int lastx;
	int testx, testy, ballx, bally;
	
	//frisbee* frisbees;
	
	UIImage* animationImages;
	
	
}

@end

Answer : Objective-C bizarre non-copile

Should be

@interface frisbee : NSObject {
      int fx,fy;
    UIImageView frisImageView;
}
@end

The base class is NSObject. @interface and @end are the keywords. Instance variables (fx, fy, frisImageView) should be in {}.
Random Solutions  
 
programming4us programming4us