File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 27
27
#import < Foundation/Foundation.h>
28
28
29
29
#if TARGET_OS_IPHONE
30
- #import < UIKit/UIKit.h>
30
+ #import < UIKit/UIKit.h>
31
+ #endif
32
+
33
+ #if TARGET_OS_OSX
34
+ #import < AppKit/AppKit.h>
31
35
#endif
32
36
33
37
// ! Project version number for EGOCache.
Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ - (void)setImage:(NSImage*)anImage forKey:(NSString*)key {
320
320
}
321
321
322
322
- (void )setImage : (NSImage *)anImage forKey : (NSString *)key withTimeoutInterval : (NSTimeInterval )timeoutInterval {
323
- [self setData: [[[anImage representations ] objectAtIndex: 0 ] representationUsingType: NSPNGFileType properties: nil ] forKey: key withTimeoutInterval: timeoutInterval];
323
+ [self setData: [[NSBitmapImageRep imageRepWithData: anImage.TIFFRepresentation ] representationUsingType: NSPNGFileType properties: @{ } ] forKey: key withTimeoutInterval: timeoutInterval];
324
324
}
325
325
326
326
#endif
You can’t perform that action at this time.
0 commit comments