BathyScapheで画像のインラインプレビューを可能にするプラグイン
| Revision | 65992966d81c8ad62cedc5b0f08c375cff83d4dc (tree) |
|---|---|
| Time | 2012-05-19 02:02:09 |
| Author | masakih <masakih@user...> |
| Commiter | masakih |
[Mod] 不要になった部分を削除
| @@ -9,7 +9,5 @@ | ||
| 9 | 9 | #import "BSInlinePreviewer.h" |
| 10 | 10 | |
| 11 | 11 | @interface BSInlinePreviewerEx : BSInlinePreviewer |
| 12 | -{ | |
| 13 | - NSMutableDictionary *tasking; | |
| 14 | -} | |
| 12 | + | |
| 15 | 13 | @end |
| @@ -12,25 +12,12 @@ NSString *const CMRThreadViewerDidChangeThreadNotification = @"CMRThreadViewerD | ||
| 12 | 12 | #import "BSIPEReplacer.h" |
| 13 | 13 | |
| 14 | 14 | |
| 15 | -@interface BSInlinePreviewer(Private) | |
| 16 | -- (NSRange)linkRange; | |
| 17 | -- (NSImage *)downloadImageURL:(NSURL *)imageURL; | |
| 18 | -- (NSAttributedString *)attachmentAttributedStringWithImage:(NSImage *)image; | |
| 19 | -- (NSImage *)notFoundImage; | |
| 20 | -- (NSImage *)fitImage:(NSImage *)image toSize:(NSSize)targetSize; | |
| 21 | - | |
| 22 | -- (void)showProgressPanel; | |
| 23 | -- (void)closeProgressPanel; | |
| 24 | -@end | |
| 25 | - | |
| 26 | - | |
| 27 | 15 | @implementation BSInlinePreviewerEx |
| 28 | 16 | // Designated Initializer |
| 29 | 17 | - (id)initWithPreferences:(AppDefaults *)prefs |
| 30 | 18 | { |
| 31 | 19 | self = [super initWithPreferences:prefs]; |
| 32 | 20 | if(self) { |
| 33 | - tasking = [[NSMutableDictionary alloc] init]; | |
| 34 | 21 | NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; |
| 35 | 22 | [nc addObserver:self |
| 36 | 23 | selector:@selector(viewerDidEndFinishing:) |