Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import <Cocoa/Cocoa.h>
- @interface TextController : NSObject {
- IBOutlet id bottom;
- IBOutlet id top;
- IBOutlet NSWindow *mainWindow;
- IBOutlet NSWindow *window;
- }
- - (IBAction)someMethod: sender;
- // handler for sheet ending
- -(void)filePanelDidEnd:(NSWindow*)sheet
- returnCode:(int)returnCode
- contextInfo:(void*)contextInfo;
- // Accessor and mutator for an array of file types
- - (NSArray *) fileTypesArray;
- - (void) setFileTypesArray: (NSArray *) anArray;
- // Accessor and specific mutator for the 'current directory', probably
- // stored in NSUserDefaults somewhere
- // Note that the class' +initialize method should set this up to be
- // somewhere sensible
- - (NSString *) userDirectory;
- - (void) setUserDirectoryFromFilename: (NSString *) aFilename;
- // Accessor for the window we want to attach the sheet to.
- - (id) window;
- - (IBAction)copyPressed: sender;
- - (IBAction)helloPressed: sender;
- @end
Add Comment
Please, Sign In to add comment