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/SapphireCollectionDirectory.m

    r729 r734  
    3636{ 
    3737        return [SapphireCollectionDirectory collectionAtPath:path mount:YES skip:NO hidden:NO manual:NO inContext:moc]; 
     38} 
     39 
     40+ (SapphireCollectionDirectory *)upgradeV1CollectionDirectory:(NSManagedObject *)oldCol toContext:(NSManagedObjectContext *)newMoc 
     41{ 
     42        SapphireCollectionDirectory *ret = [NSEntityDescription insertNewObjectForEntityForName:MY_NAME inManagedObjectContext:newMoc]; 
     43        ret.hidden = [oldCol valueForKey:@"hidden"]; 
     44        ret.isMount = [oldCol valueForKey:@"isMount"]; 
     45        ret.manualCollection = [oldCol valueForKey:@"manualCollection"]; 
     46        ret.skip = [oldCol valueForKey:@"skip"]; 
     47         
     48        return ret; 
    3849} 
    3950