title: Core data entity attribute values to NSMutableArray iPhone
body: <p>I am using this code to fetch the core data results:</p>
  
  <pre><code>-(void)getData {
  
  NSEntityDescription *entity = [NSEntityDescription entityForName:@"Favouritesdata" inManagedObjectContext:context];
  
  NSFetchRequest *request = [[NSFetchRequest alloc] init];
  
  [request setFetchBatchSize:20];
  
  [request setEntity:entity];
  
  NSSortDescriptor *sort = [[NSSortDescriptor alloc] initWithKey:@"licenseplate" ascending:NO];
  
  NSArray *newArray = [[NSArray alloc]initWithObjects:sort, nil];
  
  [request setSortDescriptors:newArray];
  
  NSError *error;
  results = [[context executeFetchRequest:request error:&amp;error] mutableCopy];
  
  NSLog(@"results::::: %@", results);
  
  [self setLicensePlateArray:results];
  
  [self.favouritesTable reloadData];
  
  }
  </code></pre>
  
  <p>Here in this entity Favouritesdata, I have an attribute with the name of license plate, I want to get this attribute values to NSMutableArray.</p>
  
  <p>How can I get these values?</p>