-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGBImageView.h
32 lines (24 loc) · 962 Bytes
/
GBImageView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Archy - Copyright (c) 2011-2013
// Author: Giuseppe Basile
// Sharit Application SL. All rights reserved
#import <Cocoa/Cocoa.h>
#import <Quartz/Quartz.h>
@interface GBImageView : NSView
@property (strong, nonatomic) NSImage *image;
#pragma mark - Animate Image switching
@property (strong, nonatomic) CATransition *transition;
#pragma mark - Asynchronous Image Request
- (void)setImageWithURL:(NSString *)url;
- (void)setImageWithURL:(NSString *)url
customCacheKey:(NSString *)cacheIdentifier;
- (void)setImageWithURL:(NSString *)url
placeholderImage:(NSImage *)placeholderImage;
- (void)setImageWithURL:(NSString *)url
placeholderImage:(NSImage *)placeholderImage
customCacheKey:(NSString *)cacheIdentifier;
#pragma mark - Cache System
+ (NSTimeInterval)timeoutInterval; // Default 1 day
+ (void)setTimeoutInterval:(NSTimeInterval)timeoutInterval;
+ (void)resetCacheForURL:(NSURL *)url;
+ (void)clearImageCache;
@end