ExampleController.h
/* ExampleController */
#import <Cocoa/Cocoa.h>
// Define our object as a subclass of NSObject
@interface ExampleController : NSObject {
// Instance variables go here.
BOOL usesCustomResizeMode;
NSString *title;
// IBOutlet means this ivar can be hooked up in Interface Builder.
IBOutlet NSButton* okButton;
}
/**
* Method declarations go down here.
*/
// Prefixing the method declaration with a minus means it's an instance method.
- (NSString *)setTitle:(NSString *)newTitle;
// Prefixing with a plus means it's a class method.
+ (ExampleController *)controllerWithSomething:(id)something;
// A return type of IBAction means it can be used as a target in Interface Builder.
- (IBAction)processNow:(id)sender;
@end