1 //===-- main.m ------------------------------------------------*- ObjC -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #import <Foundation/Foundation.h> 11 12 int main (int argc, const char * argv[]) 13 { 14 15 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 16 17 18 NSArray* keys = @[@"foo",@"bar",@"baz"]; 19 NSArray* values = @[@"hello",@[@"X",@"Y"],@{@1 : @"one",@2 : @"two"}]; 20 NSDictionary* dictionary = [NSDictionary dictionaryWithObjects:values forKeys:keys]; 21 NSMutableDictionary* mutabledict = [NSMutableDictionary dictionaryWithCapacity:5]; 22 [mutabledict setObject:@"123" forKey:@23]; 23 [mutabledict setObject:[NSURL URLWithString:@"http://www.apple.com"] forKey:@"foobar"]; 24 [mutabledict setObject:@[@"a",@12] forKey:@57]; 25 [mutabledict setObject:dictionary forKey:@"puartist"]; 26 27 [pool drain];// Set break point at this line. 28 return 0; 29 } 30 31