Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // AppController.h
- // Helloworldtutorial
- //
- // Created by Filip Nilsson on 2009-06-02.
- // Copyright 2009 __MyCompanyName__. All rights reserved.
- //
- // AppController.h
- // CocoaNotepad
- #import <Cocoa/Cocoa.h>
- @interface AppController : NSObject {
- IBOutlet id textView;
- }
- - (IBAction) clearText: sender;
- @end
- ------------------------------
- //
- // AppController.m
- // Helloworldtutorial
- //
- // Created by Filip Nilsson on 2009-06-02.
- // Copyright 2009 __MyCompanyName__. All rights reserved.
- //
- #import "AppController.h"
- @implementation AppController
- - (IBAction) clearText: sender;
- {
- [textView setString: @" "];
- }
- @end
- -----------------------------
- //
- // main.m
- // Helloworldtutorial
- //
- // Created by Filip Nilsson on 2009-06-02.
- // Copyright __MyCompanyName__ 2009. All rights reserved.
- //
- #import <Cocoa/Cocoa.h>
- int main(int argc, char *argv[])
- {
- return NSApplicationMain(argc, (const char **) argv);
- }
Add Comment
Please, Sign In to add comment