diff options
Diffstat (limited to 'tests/examplefiles/objc_example.m')
| -rw-r--r-- | tests/examplefiles/objc_example.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/examplefiles/objc_example.m b/tests/examplefiles/objc_example.m new file mode 100644 index 00000000..c2a1c414 --- /dev/null +++ b/tests/examplefiles/objc_example.m @@ -0,0 +1,11 @@ +#import "Somefile.h" + +NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys: + @"quattuor", @"four", @"quinque", @"five", @"sex", @"six", nil]; + + +NSString *key; +for (key in dictionary) { + NSLog(@"English: %@, Latin: %@", key, [dictionary valueForKey:key]); +} + |
