Guest User

Untitled

a guest
May 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. #import <Cocoa/Cocoa.h>
  2.  
  3. @interface TextController : NSObject {
  4. IBOutlet id bottom;
  5. IBOutlet id top;
  6. IBOutlet NSWindow *mainWindow;
  7. IBOutlet NSWindow *window;
  8. }
  9.  
  10. - (IBAction)someMethod: sender;
  11.  
  12. // handler for sheet ending
  13. -(void)filePanelDidEnd:(NSWindow*)sheet
  14. returnCode:(int)returnCode
  15. contextInfo:(void*)contextInfo;
  16.  
  17. // Accessor and mutator for an array of file types
  18. - (NSArray *) fileTypesArray;
  19. - (void) setFileTypesArray: (NSArray *) anArray;
  20.  
  21. // Accessor and specific mutator for the 'current directory', probably
  22. // stored in NSUserDefaults somewhere
  23. // Note that the class' +initialize method should set this up to be
  24. // somewhere sensible
  25. - (NSString *) userDirectory;
  26. - (void) setUserDirectoryFromFilename: (NSString *) aFilename;
  27.  
  28. // Accessor for the window we want to attach the sheet to.
  29. - (id) window;
  30.  
  31.  
  32. - (IBAction)copyPressed: sender;
  33. - (IBAction)helloPressed: sender;
  34. @end
Add Comment
Please, Sign In to add comment