Show
Ignore:
Timestamp:
01/08/09 21:03:22 (3 years ago)
Author:
gbooker
Message:

Switched the the next version of the metadata.
Fixes #264

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/CoreData/SapphireFrappliance/MetaData/SapphireMObjects/SapphireMoviePoster.m

    r557 r734  
    1313} 
    1414 
     15+ (SapphireMoviePoster *)upgradeV1MoviePoster:(NSManagedObject *)oldTran toTranslation:(SapphireMovieTranslation *)translation 
     16{ 
     17        NSManagedObjectContext *newMoc = [translation managedObjectContext]; 
     18        SapphireMoviePoster *ret = [NSEntityDescription insertNewObjectForEntityForName:SapphireMoviePosterName inManagedObjectContext:newMoc]; 
     19        ret.link = [oldTran valueForKey:@"link"]; 
     20        ret.index = [oldTran valueForKey:@"index"]; 
     21        ret.movieTranslation = translation; 
     22        return ret; 
     23} 
     24 
    1525- (NSComparisonResult)compare:(SapphireMoviePoster *)other 
    1626{