@@ -163,8 +163,8 @@ - (BOOL)_retrieveImageForEntity:(id <FICEntity>)entity withFormatName:(NSString
163163 BOOL imageExists = NO ;
164164
165165 FICImageTable *imageTable = [_imageTables objectForKey: formatName];
166- NSString *entityUUID = [entity UUID ];
167- NSString *sourceImageUUID = [entity sourceImageUUID ];
166+ NSString *entityUUID = [entity fic_UUID ];
167+ NSString *sourceImageUUID = [entity fic_sourceImageUUID ];
168168
169169 if (loadSynchronously == NO && [imageTable entryExistsForEntityUUID: entityUUID sourceImageUUID: sourceImageUUID]) {
170170 imageExists = YES ;
@@ -196,7 +196,7 @@ - (BOOL)_retrieveImageForEntity:(id <FICEntity>)entity withFormatName:(NSString
196196
197197 if (image == nil ) {
198198 // No image for this UUID exists in the image table. We'll need to ask the delegate to retrieve the source asset.
199- NSURL *sourceImageURL = [entity sourceImageURLWithFormatName : formatName];
199+ NSURL *sourceImageURL = [entity fic_sourceImageURLWithFormatName : formatName];
200200
201201 if (sourceImageURL != nil ) {
202202 // We check to see if this image is already being fetched.
@@ -216,9 +216,9 @@ - (BOOL)_retrieveImageForEntity:(id <FICEntity>)entity withFormatName:(NSString
216216 if (needsToFetch) {
217217 @autoreleasepool {
218218 UIImage *image;
219- if ([entity respondsToSelector: @selector (imageForFormat : )]){
219+ if ([entity respondsToSelector: @selector (fic_imageForFormat : )]){
220220 FICImageFormat *format = [self formatWithName: formatName];
221- image = [entity imageForFormat : format];
221+ image = [entity fic_imageForFormat : format];
222222 }
223223
224224 if (image){
@@ -274,7 +274,7 @@ - (void)_imageDidLoad:(UIImage *)image forURL:(NSURL *)URL {
274274}
275275
276276static void _FICAddCompletionBlockForEntity (NSString *formatName, NSMutableDictionary *entityRequestsDictionary, id <FICEntity> entity, FICImageCacheCompletionBlock completionBlock) {
277- NSString *entityUUID = [entity UUID ];
277+ NSString *entityUUID = [entity fic_UUID ];
278278 NSMutableDictionary *requestDictionary = [entityRequestsDictionary objectForKey: entityUUID];
279279 NSMutableDictionary *completionBlocks = nil ;
280280
@@ -315,7 +315,7 @@ - (void)setImage:(UIImage *)image forEntity:(id <FICEntity>)entity withFormatNam
315315 completionBlocksDictionary = [NSDictionary dictionaryWithObject: [NSArray arrayWithObject: [completionBlock copy ]] forKey: formatName];
316316 }
317317
318- NSString *entityUUID = [entity UUID ];
318+ NSString *entityUUID = [entity fic_UUID ];
319319 FICImageTable *imageTable = [_imageTables objectForKey: formatName];
320320 if (imageTable) {
321321 [imageTable deleteEntryForEntityUUID: entityUUID];
@@ -338,21 +338,21 @@ - (void)_processImage:(UIImage *)image forEntity:(id <FICEntity>)entity completi
338338
339339- (void )_processImage : (UIImage *)image forEntity : (id <FICEntity>)entity imageTable : (FICImageTable *)imageTable completionBlocks : (NSArray *)completionBlocks {
340340 if (imageTable != nil ) {
341- if ([entity UUID ] == nil ) {
341+ if ([entity fic_UUID ] == nil ) {
342342 [self _logMessage: [NSString stringWithFormat: @" *** FIC Error: %s entity %@ is missing its UUID." , __PRETTY_FUNCTION__, entity]];
343343 return ;
344344 }
345345
346- if ([entity sourceImageUUID ] == nil ) {
346+ if ([entity fic_sourceImageUUID ] == nil ) {
347347 [self _logMessage: [NSString stringWithFormat: @" *** FIC Error: %s entity %@ is missing its source image UUID." , __PRETTY_FUNCTION__, entity]];
348348 return ;
349349 }
350350
351- NSString *entityUUID = [entity UUID ];
352- NSString *sourceImageUUID = [entity sourceImageUUID ];
351+ NSString *entityUUID = [entity fic_UUID ];
352+ NSString *sourceImageUUID = [entity fic_sourceImageUUID ];
353353 FICImageFormat *imageFormat = [imageTable imageFormat ];
354354 NSString *imageFormatName = [imageFormat name ];
355- FICEntityImageDrawingBlock imageDrawingBlock = [entity drawingBlockForImage : image withFormatName: imageFormatName];
355+ FICEntityImageDrawingBlock imageDrawingBlock = [entity fic_drawingBlockForImage : image withFormatName: imageFormatName];
356356
357357 dispatch_async ([FICImageCache dispatchQueue ], ^{
358358 [imageTable setEntryForEntityUUID: entityUUID sourceImageUUID: sourceImageUUID imageDrawingBlock: imageDrawingBlock];
@@ -412,7 +412,7 @@ - (NSSet *)formatsToProcessForCompletionBlocks:(NSDictionary *)completionBlocksD
412412 }
413413
414414 // If the image already exists, keep going
415- if ([table entryExistsForEntityUUID: entity.UUID sourceImageUUID: entity.sourceImageUUID ]) {
415+ if ([table entryExistsForEntityUUID: entity.fic_UUID sourceImageUUID: entity.fic_sourceImageUUID ]) {
416416 continue ;
417417 }
418418
@@ -427,8 +427,8 @@ - (NSSet *)formatsToProcessForCompletionBlocks:(NSDictionary *)completionBlocksD
427427
428428- (BOOL )imageExistsForEntity : (id <FICEntity>)entity withFormatName : (NSString *)formatName {
429429 FICImageTable *imageTable = [_imageTables objectForKey: formatName];
430- NSString *entityUUID = [entity UUID ];
431- NSString *sourceImageUUID = [entity sourceImageUUID ];
430+ NSString *entityUUID = [entity fic_UUID ];
431+ NSString *sourceImageUUID = [entity fic_sourceImageUUID ];
432432
433433 BOOL imageExists = [imageTable entryExistsForEntityUUID: entityUUID sourceImageUUID: sourceImageUUID];
434434
@@ -439,13 +439,13 @@ - (BOOL)imageExistsForEntity:(id <FICEntity>)entity withFormatName:(NSString *)f
439439
440440- (void )deleteImageForEntity : (id <FICEntity>)entity withFormatName : (NSString *)formatName {
441441 FICImageTable *imageTable = [_imageTables objectForKey: formatName];
442- NSString *entityUUID = [entity UUID ];
442+ NSString *entityUUID = [entity fic_UUID ];
443443 [imageTable deleteEntryForEntityUUID: entityUUID];
444444}
445445
446446- (void )cancelImageRetrievalForEntity : (id <FICEntity>)entity withFormatName : (NSString *)formatName {
447- NSURL *sourceImageURL = [entity sourceImageURLWithFormatName : formatName];
448- NSString *entityUUID = [entity UUID ];
447+ NSURL *sourceImageURL = [entity fic_sourceImageURLWithFormatName : formatName];
448+ NSString *entityUUID = [entity fic_UUID ];
449449
450450 BOOL cancelImageLoadingForEntity = NO ;
451451 @synchronized (_requests) {
0 commit comments