BathyScapheで画像のインラインプレビューを可能にするプラグイン
| Revision | 631da74355aefcc092f795bd9bed9249424115b0 (tree) |
|---|---|
| Time | 2012-05-18 23:05:23 |
| Author | masakih <masakih@user...> |
| Commiter | masakih |
[Mod] キャッシュの上限を設定
| @@ -45,3 +45,5 @@ | ||
| 45 | 45 | - (id)previewAttributes; |
| 46 | 46 | |
| 47 | 47 | @end |
| 48 | + | |
| 49 | +extern NSString *const BSInlinePreviewerPreviewed; |
| @@ -29,7 +29,7 @@ | ||
| 29 | 29 | |
| 30 | 30 | @implementation BSInlinePreviewer |
| 31 | 31 | |
| 32 | -static NSString *const BSInlinePreviewerPreviewed = @"BSInlinePreviewerPreviewed"; | |
| 32 | +NSString *const BSInlinePreviewerPreviewed = @"BSInlinePreviewerPreviewed"; | |
| 33 | 33 | const NSUInteger alreadyPreviewed = NSNotFound - 1; |
| 34 | 34 | |
| 35 | 35 | @synthesize totalDownloads, remainder; |
| @@ -43,6 +43,7 @@ const NSUInteger alreadyPreviewed = NSNotFound - 1; | ||
| 43 | 43 | [self setPreferences:prefs]; |
| 44 | 44 | cache = [[NSCache alloc] init]; |
| 45 | 45 | [cache setName:@"BSInlinePreviewer"]; |
| 46 | + [cache setCountLimit:100]; | |
| 46 | 47 | } |
| 47 | 48 | |
| 48 | 49 | return self; |