Thread: cocoa help
View Single Post
  #6  
Old April 29th, 2008, 03:55 AM
Viro's Avatar
Viro Viro is offline
Registered User
 
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,492
Thanks: 0
Thanked 1 Time in 1 Post
Viro will become famous soon enoughViro will become famous soon enough
That could be why you're having problems

The code that you've posted should go into the .m file. Headers contain interface code while .m files contain the implementation details.

Looking at your code, I'm guessing that your header file should contain something like the following

Code:
 
@interface AppController : NSObject {
  IBOutlet id textBox1;
}
- (IBAction)add3:(id)sender;
- (IBAction)subtract3:(id)sender;
@end
Reply With Quote