I have just gotten a book on coding in cocoa, I am now creating a simple calculator that will add two nubmers. I have wrote the fusebox.m and the fusebox.h files. I am now trying to get the interface builder to read the class files, once I press read class files and then chose the correct .h file to read it then gives me this message in the .xib status bar.... "parsed 1 source file, but no classes were found or changed".... I do not understand what I did wrong. Below is the code that is in fusebox.m and fusebox.h respectivley.
**************FUSEBOX.m***********
**********END******************
***************FUSEBOX.h****************
**********END***********
**************FUSEBOX.m***********
Code:
#import "Fusebox.h"
@implementation Fusebox
- (IBAction)calculateAnswerid)sender
{
//this is where your code begins
int num1,num2,answer;
num1 = [numberField1 intValue];
num2 = [numberField2 intValue];
answer = num1 + num2;
[answerField setIntValue:answer];
//this is where your code ends
}
@end
***************FUSEBOX.h****************
Code:
/* Fusebox */
#import <Cocoa/Cocoa.h>
@interface Fusebox : NSObject
{
IBOutlet id answerField;
IBOutlet id numberField1;
IBOutlet id numberField2;
}
- (IBAction)calculateAnswerid)sender;
@end