Everytime I press the button, it's supposed to change the label, but it doesn't. It also doesn't see that I have made any connections. Please help. Thank you in advance.
AppController.m:
#import "AppController.h"
@implementation AppController
-(IBAction)sayHello:(id)sender{
[label setStringValue:@"Hello World!"];
}
@end
AppController.h:
#import <Foundation/Foundation.h>
@interface AppController : NSObject{
IBOutlet NSTextField *label;
}
-(IBAction)sayHello:(id)sender;
@end
The window: