Created
          February 7, 2011 21:21 
        
      - 
      
- 
        Save robotron2084/815238 to your computer and use it in GitHub Desktop. 
  
    
      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*) initVariations:(NSArray*)variationDictionaries { | |
| int l = [variationDictionaries count]; | |
| SMVariation *vArray[l]; | |
| for(int i=0;i<l; i++){ | |
| NSDictionary* variationDictionary = [variationDictionaries objectAtIndex:i]; | |
| SMVariation *variation = [[SMVariation alloc] initFromDictionary:variationDictionary]; | |
| vArray[i] = variation; | |
| } | |
| NSArray *variationsArray = [NSArray arrayWithObjects:vArray count:l]; | |
| return variationsArray; | |
| } | 
        
      
            artgillespie
  
      
      
      commented 
        Feb 7, 2011 
      
    
  
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment