// I am using strings, but you can add just about any object to an NSArray
// Creates an NSArray with one object
NSArray * myArray = [NSArray arrayWithObject:@"foo"];
// Creates an NSArray with multiple objects. Don't forget to add nil as the last object
NSArray * myArray2 = [NSArray arrayWithObjects:@"foo",@"bar",@"baz",nil];
// Objective-C Tutorial: NSArray
// Creates an NSArray from another NSArray
NSArray * myArray3 = [NSArray arrayWithArray:myArray2];
// This will create an NSArray from data on iCodeBlog. Go ahead and try it out, this file exists on our servers and contains valid data.
NSArray * myArray4 = [NSArray arrayWithContentsOfURL:[NSURL URLWithString:@"http://icodeblog.com/wp-content/uploads/2009/08/foo.plist"]];
// http://icodeblog.com/2009/08/26/objective-c-tutorial-nsarray/