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

Revision 557, 587 bytes checked in by gbooker, 6 years ago (diff)

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

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.