Guest User

Untitled

a guest
Jun 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. //
  2. // AppController.h
  3. // Helloworldtutorial
  4. //
  5. // Created by Filip Nilsson on 2009-06-02.
  6. // Copyright 2009 __MyCompanyName__. All rights reserved.
  7. //
  8. // AppController.h
  9. // CocoaNotepad
  10.  
  11. #import <Cocoa/Cocoa.h>
  12.  
  13. @interface AppController : NSObject {
  14. IBOutlet id textView;
  15.  
  16. }
  17. - (IBAction) clearText: sender;
  18. @end
  19.  
  20. ------------------------------
  21.  
  22. //
  23. // AppController.m
  24. // Helloworldtutorial
  25. //
  26. // Created by Filip Nilsson on 2009-06-02.
  27. // Copyright 2009 __MyCompanyName__. All rights reserved.
  28. //
  29.  
  30. #import "AppController.h"
  31.  
  32.  
  33. @implementation AppController
  34.  
  35. - (IBAction) clearText: sender;
  36. {
  37. [textView setString: @" "];
  38. }
  39.  
  40. @end
  41.  
  42. -----------------------------
  43.  
  44. //
  45. // main.m
  46. // Helloworldtutorial
  47. //
  48. // Created by Filip Nilsson on 2009-06-02.
  49. // Copyright __MyCompanyName__ 2009. All rights reserved.
  50. //
  51.  
  52. #import <Cocoa/Cocoa.h>
  53.  
  54. int main(int argc, char *argv[])
  55. {
  56. return NSApplicationMain(argc, (const char **) argv);
  57. }
Add Comment
Please, Sign In to add comment