I'm just starting to get the hang of Obj-C but I can't get this to work - set the title of the window to the contents of the text field. Where am I slipping up, please?. 
here is my code:
header
main
here is my code:
header
Code:
//
// controller.h
// SetWindowTitleToTextBox
//
// Created by Matt Foot on 08/09/2009.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface controller : NSObject {
IBOutlet NSWindow *myWindow;
NSTextField *myTextfield;
}
-(IBAction)changeTitle:(id)sender;
@end
main
Code:
//
// controller.m
// SetWindowTitleToTextBox
//
// Created by Matt Foot on 08/09/2009.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import "controller.h"
@implementation controller
-(IBAction)changeTitle:(id)sender{
[myWindow setTitle:[myTextfield stringValue]];
}
@end