I'm just beginning X-code (stuck using 3.2.6 for now) and having a similar issue to that described in this post: Connect a UILabel in Interface Builder and XCode?, but still can't figure out where I'm going wrong.
When I ctrl-click on the button and drag to the File's Owner icon, I understand that a menu is supposed to pop up but nothing happens.
Any ideas greatly appreciated.
Here's the code for MyHelloWorldViewController.h:
#import <UIKit/UIKit.h>
@interface MyHelloWorldViewController : UIViewController {
}
- (IBAction) myButtonWasClicked:(id)sender;
{
NSLog(@"button clicked");
}
@end
and MyHelloWorldViewController.m:
#import "MyHelloWorldViewController.h"
@implementation MyHelloWorldViewController
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
}
- (void)dealloc {
[super dealloc];
}
- (void)viewDidUnload {
}
@end