source: branches/CoreData/SapphireFrappliance/MetaData/SapphireMObjects/SapphireMoviePoster.m @ 557

Last change on this file since 557 was 557, checked in by gbooker, 7 years ago

Numerous fixes. Importing now works; background importer is horribly broken (but can be fixed).

File size: 587 bytes
Line 
1#import "SapphireMoviePoster.h"
2
3@implementation SapphireMoviePoster
4
5+ (SapphireMoviePoster *)createPosterWithLink:(NSString *)link index:(int)index translation:(SapphireMovieTranslation *)translation inContext:(NSManagedObjectContext *)moc
6{
7        SapphireMoviePoster *ret = [NSEntityDescription insertNewObjectForEntityForName:SapphireMoviePosterName inManagedObjectContext:moc];
8        ret.link = link;
9        ret.indexValue = index;
10        ret.movieTranslation = translation;
11       
12        return ret;
13}
14
15- (NSComparisonResult)compare:(SapphireMoviePoster *)other
16{
17        return [self.index compare:other.index];
18}
19
20@end
Note: See TracBrowser for help on using the repository browser.