title: Core data: any way to fetch multiple entities?
body: <p>I'm just getting started with Core Data, and as a learning exercise I'm building an app where I need to display different types of objects in a single table view.</p>
  
  <p>As an example, say I have an entity for "Cheese" and an unrelated entity for "Pirate". On the main screen of my app, the user should be able to create either a "Cheese" or a "Pirate" instance to add to the table view.</p>
  
  <p>So, using the core data editor I've created entities for Cheese and Pirate... however, an NSFetchRequest seems to only allow you to retrieve one type of entity at a time with:</p>
  
  <pre><code>NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
  NSEntityDescription *entity = [NSEntityDescription entityForName:@"Cheese" inManagedObjectContext:_context];
  [fetchRequest setEntity:entity];
  </code></pre>
  
  <p>Is there any way to perform a fetch that retrieves all "Cheese" and "Pirate" objects?</p>
  
  <p>Thanks.</p>