I am so new to this iphone development and am following along in a cocoa programming book. I followed the instructions to a tree and when i build and run i get lots of undeclared errors. I don't know how to fix.
everything in blue is undeclared. do i need to got into the account.h file to fix?
Code:
#import "AccountController.h"
@implementation AccountController
- (void)awakeFromNib {
[COLOR="RoyalBlue"]account = [[Account alloc] init];[/COLOR]
[display setFloatValue:[account balance]];
}
- (IBAction)deposit:(id)sender {
[COLOR="RoyalBlue"][account deposit:20.00f];[/COLOR]
[display setFloatValue:[account balance]];
}
- (IBAction)withdraw:(id)sender {
[COLOR="RoyalBlue"][account withdraw:5.00f];[/COLOR]
[display setFloatValue:[account balance]];
}
- (void)dealloc {
[COLOR="RoyalBlue"][account release];[/COLOR]
[super dealloc];
}
@end
everything in blue is undeclared. do i need to got into the account.h file to fix?