initialize an NSArray with a list of objects
initialize an NSArray with a list of objects
- Subject: initialize an NSArray with a list of objects
- From: David Alter <email@hidden>
- Date: Tue, 16 May 2006 15:53:07 -0700
Is there a way to initialize an NSArray with a list of strings like I
can do in C
Example
the C way
char * myList[] = {"item1", "item2", "item3" }
I tried this, and it only picked up the first item
NSArray * myList = {@"item1", @"item2", @"item3" }
Thanks for the help
-dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden