summaryrefslogtreecommitdiff
path: root/tests/examplefiles/objc_example.m
blob: cb5c0975488567e922fc56cc83fdb94715ab4488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#import "Somefile.h"

@implementation ABC

- (id)a:(B)b {
    return 1;
}

@end

@implementation ABC

- (void)xyz;

@end

NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:
    @"quattuor", @"four", @"quinque", @"five", @"sex", @"six", nil];


NSString *key;
for (key in dictionary) {
    NSLog(@"English: %@, Latin: %@", key, [dictionary valueForKey:key]);
}