1#import <Foundation/Foundation.h>
9 greeting_text = @"Hello, world!";
12 Hello(const char* initial_greeting_text) {
13 greeting_text = [[NSString alloc] initWithUTF8String:initial_greeting_text];
17 printf("%s\n", [greeting_text UTF8String]);
21@interface Greeting : NSObject {
29- (void)sayGreeting:(Hello*)greeting;
32@implementation Greeting
50- (void)sayGreeting:(Hello*)greeting {
51 greeting->say_hello();
57 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
58 Greeting *greeting = [[Greeting alloc] init];
59 [greeting sayGreeting];
61 Hello *hello = new Hello("Bonjour, monde!");
62 [greeting sayGreeting:hello];
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list