• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

BathyScapheで画像のインラインプレビューを可能にするプラグイン


Commit MetaInfo

Revision631da74355aefcc092f795bd9bed9249424115b0 (tree)
Time2012-05-18 23:05:23
Authormasakih <masakih@user...>
Commitermasakih

Log Message

[Mod] キャッシュの上限を設定

Change Summary

Incremental Difference

--- a/BSInlinePreviewer.h
+++ b/BSInlinePreviewer.h
@@ -45,3 +45,5 @@
4545 - (id)previewAttributes;
4646
4747 @end
48+
49+extern NSString *const BSInlinePreviewerPreviewed;
--- a/BSInlinePreviewer.m
+++ b/BSInlinePreviewer.m
@@ -29,7 +29,7 @@
2929
3030 @implementation BSInlinePreviewer
3131
32-static NSString *const BSInlinePreviewerPreviewed = @"BSInlinePreviewerPreviewed";
32+NSString *const BSInlinePreviewerPreviewed = @"BSInlinePreviewerPreviewed";
3333 const NSUInteger alreadyPreviewed = NSNotFound - 1;
3434
3535 @synthesize totalDownloads, remainder;
@@ -43,6 +43,7 @@ const NSUInteger alreadyPreviewed = NSNotFound - 1;
4343 [self setPreferences:prefs];
4444 cache = [[NSCache alloc] init];
4545 [cache setName:@"BSInlinePreviewer"];
46+ [cache setCountLimit:100];
4647 }
4748
4849 return self;