title: Unacceptable type of value for attribute - Desired type NSstring
body: <p>The tite explains the error :</p>
  
  <pre><code>Unacceptable type of value for attribute: property = "routinename"; desired type = NSString; given type = _NSArrayM;
  </code></pre>
  
  <p>I am adding an array from which the user generates and importing it into a core data entity.</p>
  
  <p>This is done by :</p>
  
  <p><strong>viewDidLoad</strong></p>
  
  <pre><code>NSMutableArray *array = [[NSMutableArray alloc] init];
  self.exTitle = array;
  </code></pre>
  
  <p><strong>didSelectRowAtIndexPath</strong></p>
  
  <pre><code>[self.exTitle addObject: info.name];
  </code></pre>
  
  <p>Which all works fine and adds the value into the array.</p>
  
  <p>To add it to the core data entity I tried:</p>
  
  <pre><code>-(IBAction) Done: (id)sender {
  
  NSManagedObjectContext *context = [self managedObjectContext];
  NSManagedObject *newDevice = [NSEntityDescription insertNewObjectForEntityForName:@"Routines" inManagedObjectContext: context];
  [newDevice setValue:exTitle forKey: @"routinename"];
  </code></pre>
  
  <p>I am probably missing something really simple but how do I correct this so I can add the array into the NSString formatted value in the entity.</p>