Created
          November 26, 2011 17:17 
        
      - 
      
 - 
        
Save sibartlett/1395991 to your computer and use it in GitHub Desktop.  
    MagicalRecord Example
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | NSArray *results = [Employee findAllInContext:self.managedObjectContext]; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | NSArray *results = [Employee findAll]; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | NSFetchRequest *request = [[NSFetchRequest alloc] init]; | |
| request.entity = [NSEntityDescription | |
| entityForName:@"Employee" inManagedObjectContext:managedObjectContext]; | |
| NSArray *results = | |
| [managedObjectContext executeFetchRequest:request error:nil]; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment