title: iPhone Core Data objects added to NSMutableArray
body: <p>I am trying to have a bunch of Core Data objects (NSStrings) be added to an NSMutableArray so that I pickerView can use the strings as its data values.</p>
  
  <p>Currently I am able to save strings from a textField one at a time into the sqlite file, in Core Data.</p>
  
  <p>I am having trouble pulling those Objects back out of the Core Data sqlite file and into a NSMutable array.</p>
  
  <p>This is the code to add objects to the sqlite file...</p>
  
  <pre><code>-(IBAction)addToPicker
  {
   CoreDataPickerAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
   NSManagedObjectContext *context = [appDelegate managedObjectContext]; 
   NSManagedObject *thePerson = [NSEntityDescription insertNewObjectForEntityForName:@"Event" inManagedObjectContext:context];
  
   [thePerson setValue:textField.text forKey:@"eventName"];
  
   [context save:&amp;error];
  
   textField.text=@"";
   self.viewDidLoad;
  
   [textField resignFirstResponder];
  }
  </code></pre>
  
  <p>Right now I have...</p>
  
  <pre><code>- (void)viewDidLoad {
  
   NSMutableArray *array = [[NSMutableArray alloc] init];
  
          //code needed to send all the objects in the sqlite Core Data store into array to be read by the pickerView
  
          self.pickerData = array;   // the picker uses NSMutableArray pickerData for its data
  
   [array release];
  
   [super viewDidLoad];
  
  }
  </code></pre>
  
  <p>any help would greatly be appreciated.
  Chris</p>