title: Adding to a core data model from an NSArray
body: <p>I have an NSArray of strings and I want to add a certain amount of rows to the outline view depending on how many strings are in the array, each with the title of the String that was added.</p>
  
  <p>I think it would involve looping through the array like this. </p>
  
  <pre><code>for(NSString *title in array) {
      JGManagedObject *theParent = 
          [NSEntityDescription insertNewObjectForEntityForName:@"projects"
                                        inManagedObjectContext:managedObjectContext];
      [theParent setValue:nil forKey:@"parent"];
      [theParent setValue:@"Project" forKey:@"name"];
      [theParent setValue:[NSNumber numberWithInt:0] forKey:@"position"];
  
  }
  </code></pre>