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 NSMutableArray* arr = [[NSMutableArray alloc] init]; 19 [arr addObject:@"hello"]; 20 [arr addObject:@"world"]; 21 [arr addObject:@"this"]; 22 [arr addObject:@"is"]; 23 [arr addObject:@"me"]; 24 [arr addObject:[NSURL URLWithString:@"http://www.apple.com/"]]; 25 26 NSDate *aDate = [NSDate distantFuture]; 27 NSValue *aValue = [NSNumber numberWithInt:5]; 28 NSString *aString = @"a string"; 29 30 NSArray *other_arr = [NSArray arrayWithObjects:aDate, aValue, aString, arr, nil]; 31 32 [pool drain];// Set break point at this line. 33 return 0; 34 } 35 36