Changeset 1342 for trunk

Show
Ignore:
Timestamp:
05/01/11 16:23:19 (13 months ago)
Author:
gbooker
Message:

Add back the writing of raw images to a file in the poster chooser.
Refs #45

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/SapphireFrappliance/MetaDataImporting/SapphirePosterChooser.m

    r1270 r1342  
    542542                        [loader cancelLoadOfURL:posterURL forTarget:self]; 
    543543                } 
     544                NSImage *candidateImage = [posters objectAtIndex:selection]; 
     545                if([candidateImage isKindOfClass:[NSImage class]]) 
     546                { 
     547                        NSString *path = [[[meta path] stringByDeletingPathExtension] stringByAppendingPathExtension:@"jpg"]; 
     548                        [candidateImage writeToFile:path atomically:YES]; 
     549                } 
    544550                [[self stack] popController]; 
    545551        }