BathyScapheのリンクをクリックした時に開くアプリケーションを設定するためのツール
| Revision | e4caf6d738905693e79ff7dd7494ff24389451f0 (tree) |
|---|---|
| Time | 2009-05-05 10:44:06 |
| Author | masakih <masakih@user...> |
| Commiter | masakih |
他のプレビューアから開けるようにした。
git-svn-id: svn+ssh://macmini/usr/local/svnrepos/BSLinkConductor/BSLinkConductor@6 061f2d1e-a732-4c5b-b008-8f2f835f3f04
| @@ -186,8 +186,16 @@ BSLinkConductor* BSLinkC; | ||
| 186 | 186 | [self storeItemsArray]; |
| 187 | 187 | } |
| 188 | 188 | |
| 189 | +- (BOOL)isPreviewerItem:(BSLinkConductorItem *)item | |
| 190 | +{ | |
| 191 | + return [[previewSelector previewerDisplayNames] containsObject:[item targetApplicationName]]; | |
| 192 | +} | |
| 189 | 193 | - (BOOL)openLink:(NSURL *)anURL withItem:(BSLinkConductorItem *)item; |
| 190 | 194 | { |
| 195 | + if([self isPreviewerItem:item]) { | |
| 196 | + return [previewSelector openURL:anURL inPreviewerByName:[item targetApplicationName]]; | |
| 197 | + } | |
| 198 | + | |
| 191 | 199 | NSWorkspaceLaunchOptions options = 0; |
| 192 | 200 | |
| 193 | 201 | if(!item) { |