title: Core Data this class is not key value coding-compliant for the key name
body: <p>I had to add Core data to my existing project, but all I have is one entity and one attribute to it. I have an entity named "Places" and an attribute named <code>name</code>. I seem to be getting <code>SIGABRT</code> at the <code>cell.nameLabel.text</code> line:</p>
  
  <pre><code>NSManagedObject *Item = [placesArray objectAtIndex:indexPath.row];
  
  cell.nameLabel.text = [NSString stringWithFormat:@"%@", [Item valueForKey:@"name"]
  </code></pre>
  
  <p>I have imported "Places.h" which is the NSManagedObject subclass. I have no idea what could possible be the matter.</p>
  
  <p>All help is appreciated, thanks in advance.</p>
  
  <p>EDIT: Here is the FULL error:</p>
  
  <pre><code>    2014-07-30 08:56:11.415 FindItHere[1216:60b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[&lt;__NSCFConstantString 0x1f7dc&gt; valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.'
  *** First throw call stack:
  (
      0   CoreFoundation                      0x01d5c1e4 __exceptionPreprocess + 180
      1   libobjc.A.dylib                     0x01adb8e5 objc_exception_throw + 44
      2   CoreFoundation                      0x01debfe1 -[NSException raise] + 17
      3   Foundation                          0x0158ec7a -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 282
      4   Foundation                          0x014fbdfd _NSGetUsingKeyValueGetter + 81
      5   Foundation                          0x014fb437 -[NSObject(NSKeyValueCoding) valueForKey:] + 260
      6   FindItHere                          0x0000f6dc -[FindTableViewController tableView:cellForRowAtIndexPath:] + 508
      7   UIKit                               0x0068711f -[UITableView _createPreparedCellForGlobalRow:withIndexPath:] + 412
      8   UIKit                               0x006871f3 -[UITableView _createPreparedCellForGlobalRow:] + 69
      9   UIKit                               0x00668ece -[UITableView _updateVisibleCellsNow:] + 2428
      10  UIKit                               0x0067d6a5 -[UITableView layoutSubviews] + 213
      11  UIKit                               0x005fd964 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 355
      12  libobjc.A.dylib                     0x01aed82b -[NSObject performSelector:withObject:] + 70
      13  QuartzCore                          0x04c1145a -[CALayer layoutSublayers] + 148
      14  QuartzCore                          0x04c05244 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
      15  QuartzCore                          0x04c050b0 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26
      16  QuartzCore                          0x04b6b7fa _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 294
      17  QuartzCore                          0x04b6cb85 _ZN2CA11Transaction6commitEv + 393
      18  QuartzCore                          0x04b6d258 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92
      19  CoreFoundation                      0x01d2436e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
      20  CoreFoundation                      0x01d242bf __CFRunLoopDoObservers + 399
      21  CoreFoundation                      0x01d02254 __CFRunLoopRun + 1076
      22  CoreFoundation                      0x01d019d3 CFRunLoopRunSpecific + 467
      23  CoreFoundation                      0x01d017eb CFRunLoopRunInMode + 123
      24  GraphicsServices                    0x031745ee GSEventRunModal + 192
      25  GraphicsServices                    0x0317442b GSEventRun + 104
      26  UIKit                               0x0058ef9b UIApplicationMain + 1225
      27  FindItHere                          0x0000c54d main + 141
      28  libdyld.dylib                       0x02e0d70d start + 1
      29  ???                                 0x00000001 0x0 + 1
  )
  libc++abi.dylib: terminating with uncaught exception of type NSException
  </code></pre>
  
  <p>And this error occurs at this EXACT line:</p>
  
  <pre><code>[cell.nameLabel setText:[NSString stringWithFormat:@"%@", [Item valueForKey:@"name"]]];
  </code></pre>
  
  <p>EDIT #2: Here is how I populated my array in the viewDidLoad:</p>
  
  <pre><code>placesArray = [[NSMutableArray alloc] init];
  
  
  self.tableView.delegate = self;
  self.tableView.dataSource = self;
  
  [placesArray addObject:@"ATM"];
  [placesArray addObject:@"Park"];
  [placesArray addObject:@"Restaurant"];
  [placesArray addObject:@"Library"];
  [placesArray addObject:@"Gas Station"];
  [placesArray addObject:@"Florist"];
  [placesArray addObject:@"Cafe"];
  </code></pre>