「プロジェクト終了」 BathyScapheのプレビューアプラグインを複数使用出来るようにするプラグイン
修訂 | 57b1436ef7c0a8b3cb3ff6a59950933ded3ec30d (tree) |
---|---|
時間 | 2012-07-21 23:23:24 |
作者 | masakih <masakih@user...> |
Commiter | masakih |
[Mod] 環境設定用プロパティ追加。
@@ -30,4 +30,8 @@ | ||
30 | 30 | @property (getter=isTryCheck) BOOL tryCheck; |
31 | 31 | @property (getter=isDisplayInMenu) BOOL displayInMenu; |
32 | 32 | |
33 | +@property (readonly) NSString *copyright; | |
34 | +@property (readonly) BOOL hasPreviewPanel; | |
35 | +@property (readonly) BOOL hasPreferencePanel; | |
36 | + | |
33 | 37 | @end |
@@ -68,6 +68,22 @@ static NSMutableDictionary *previewerInfo = nil; | ||
68 | 68 | [previewerInfo setObject:_previewer forKey:_identifier]; |
69 | 69 | } |
70 | 70 | |
71 | +- (NSString *)copyright | |
72 | +{ | |
73 | + NSBundle *bundle = [NSBundle bundleForClass:[self.previewer class]]; | |
74 | + NSDictionary *info = [bundle localizedInfoDictionary]; | |
75 | + return [info objectForKey:@"NSHumanReadableCopyright"]; | |
76 | +} | |
77 | +- (BOOL)hasPreviewPanel | |
78 | +{ | |
79 | + return [self.previewer respondsToSelector:@selector(togglePreviewPanel:)]; | |
80 | +} | |
81 | +- (BOOL)hasPreferencePanel | |
82 | +{ | |
83 | + return [self.previewer respondsToSelector:@selector(showPreviewerPreferences:)]; | |
84 | +} | |
85 | + | |
86 | + | |
71 | 87 | - (BOOL)isEqual:(id)object |
72 | 88 | { |
73 | 89 | if(self == object) return YES; |