BathyScaphe用次スレ候補検索プラグイン
Revision | ada5f02dbb7890937ef608d4bab0833548b8c4bd (tree) |
---|---|
Time | 2011-02-18 20:13:53 |
Author | Hori, Masaki <masakih@user...> |
Commiter | Hori, Masaki |
treat files.
@@ -8,12 +8,7 @@ | ||
8 | 8 | |
9 | 9 | #import <Cocoa/Cocoa.h> |
10 | 10 | #import "BSImagePreviewerInterface.h" |
11 | - | |
12 | 11 | #import "BSPreviewPluginInterface.h" |
13 | 12 | |
14 | 13 | @interface NextThreadFinder : NSResponder <BSImagePreviewerProtocol, BSLinkPreviewing> |
15 | -{ | |
16 | - | |
17 | -} | |
18 | - | |
19 | 14 | @end |
@@ -38,11 +38,8 @@ const NSInteger kScriptMenuTag = 8; | ||
38 | 38 | } |
39 | 39 | - (BOOL)previewLink:(NSURL *)url { return NO; } |
40 | 40 | - (BOOL)validateLink:(NSURL *)url { return NO; } |
41 | - | |
42 | -// Accessor | |
43 | 41 | - (void)setPreferences:(AppDefaults *)aPreferences {} |
44 | 42 | - (AppDefaults *)preferences { return nil; } |
45 | -// Action | |
46 | 43 | - (BOOL)showImageWithURL:(NSURL *)imageURL { return NO; } |
47 | 44 | |
48 | 45 | - (void)setupMenu |
@@ -89,8 +86,7 @@ const NSInteger kScriptMenuTag = 8; | ||
89 | 86 | |
90 | 87 | - (id)findCMRBrowser |
91 | 88 | { |
92 | - NSArray *windows = [NSApp windows]; | |
93 | - for(NSWindow *window in windows) { | |
89 | + for(NSWindow *window in [NSApp windows]) { | |
94 | 90 | NSWindowController *wc = [window windowController]; |
95 | 91 | if([wc isMemberOfClass:NSClassFromString(@"CMRBrowser")]) { |
96 | 92 | return wc; |
@@ -103,11 +99,10 @@ const NSInteger kScriptMenuTag = 8; | ||
103 | 99 | NSMutableArray *tokens = [NSMutableArray array]; |
104 | 100 | |
105 | 101 | CFLocaleRef locale = CFLocaleCreate(kCFAllocatorDefault, (CFStringRef)@"ja"); |
106 | - | |
107 | 102 | CFStringTokenizerRef tokenizer = CFStringTokenizerCreate(kCFAllocatorDefault, |
108 | 103 | (CFStringRef)title, |
109 | 104 | CFRangeMake(0, [title length]), |
110 | - kCFStringTokenizerUnitWordBoundary,//kCFStringTokenizerUnitWord, | |
105 | + kCFStringTokenizerUnitWordBoundary, | |
111 | 106 | locale); |
112 | 107 | while(CFStringTokenizerAdvanceToNextToken(tokenizer) != kCFStringTokenizerTokenNone) { |
113 | 108 | CFRange range = CFStringTokenizerGetCurrentTokenRange(tokenizer); |
@@ -9,7 +9,6 @@ | ||
9 | 9 | /* Begin PBXBuildFile section */ |
10 | 10 | 8D5B49B0048680CD000E48DA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C167DFE841241C02AAC07 /* InfoPlist.strings */; }; |
11 | 11 | 8D5B49B4048680CD000E48DA /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */; }; |
12 | - F468C69D1220CA07009EFA3E /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F468C69C1220CA07009EFA3E /* WebKit.framework */; }; | |
13 | 12 | F4B1C50C130D59FA00B4BF6C /* NextThreadFinder.m in Sources */ = {isa = PBXBuildFile; fileRef = F4B1C50B130D59FA00B4BF6C /* NextThreadFinder.m */; }; |
14 | 13 | F4B1C753130D803500B4BF6C /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = F4B1C752130D803500B4BF6C /* Localizable.strings */; }; |
15 | 14 | /* End PBXBuildFile section */ |
@@ -24,7 +23,6 @@ | ||
24 | 23 | 8D5B49B7048680CD000E48DA /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; |
25 | 24 | D2F7E65807B2D6F200F64583 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = "<absolute>"; }; |
26 | 25 | F468C45612200CA2009EFA3E /* BSPreviewPluginInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BSPreviewPluginInterface.h; sourceTree = "<group>"; }; |
27 | - F468C69C1220CA07009EFA3E /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; }; | |
28 | 26 | F4B1C50A130D59FA00B4BF6C /* NextThreadFinder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NextThreadFinder.h; sourceTree = "<group>"; }; |
29 | 27 | F4B1C50B130D59FA00B4BF6C /* NextThreadFinder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NextThreadFinder.m; sourceTree = "<group>"; }; |
30 | 28 | F4B1C754130D804500B4BF6C /* Japanese */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = Japanese; path = Japanese.lproj/Localizable.strings; sourceTree = "<group>"; }; |
@@ -37,7 +35,6 @@ | ||
37 | 35 | buildActionMask = 2147483647; |
38 | 36 | files = ( |
39 | 37 | 8D5B49B4048680CD000E48DA /* Cocoa.framework in Frameworks */, |
40 | - F468C69D1220CA07009EFA3E /* WebKit.framework in Frameworks */, | |
41 | 38 | ); |
42 | 39 | runOnlyForDeploymentPostprocessing = 0; |
43 | 40 | }; |
@@ -100,7 +97,6 @@ | ||
100 | 97 | 089C167FFE841241C02AAC07 /* AppKit.framework */, |
101 | 98 | D2F7E65807B2D6F200F64583 /* CoreData.framework */, |
102 | 99 | 089C1672FE841209C02AAC07 /* Foundation.framework */, |
103 | - F468C69C1220CA07009EFA3E /* WebKit.framework */, | |
104 | 100 | ); |
105 | 101 | name = "Other Frameworks"; |
106 | 102 | sourceTree = "<group>"; |
@@ -124,9 +120,9 @@ | ||
124 | 120 | /* End PBXGroup section */ |
125 | 121 | |
126 | 122 | /* Begin PBXNativeTarget section */ |
127 | - 8D5B49AC048680CD000E48DA /* BSInlinePreviewer */ = { | |
123 | + 8D5B49AC048680CD000E48DA /* NextThreadFinder */ = { | |
128 | 124 | isa = PBXNativeTarget; |
129 | - buildConfigurationList = 1DEB913A08733D840010E9CD /* Build configuration list for PBXNativeTarget "BSInlinePreviewer" */; | |
125 | + buildConfigurationList = 1DEB913A08733D840010E9CD /* Build configuration list for PBXNativeTarget "NextThreadFinder" */; | |
130 | 126 | buildPhases = ( |
131 | 127 | 8D5B49AF048680CD000E48DA /* Resources */, |
132 | 128 | 8D5B49B1048680CD000E48DA /* Sources */, |
@@ -137,7 +133,7 @@ | ||
137 | 133 | ); |
138 | 134 | dependencies = ( |
139 | 135 | ); |
140 | - name = BSInlinePreviewer; | |
136 | + name = NextThreadFinder; | |
141 | 137 | productInstallPath = "$(HOME)/Library/Bundles"; |
142 | 138 | productName = BSInlinePreviewer; |
143 | 139 | productReference = 8D5B49B6048680CD000E48DA /* NextThreadFinder.plugin */; |
@@ -162,7 +158,7 @@ | ||
162 | 158 | projectDirPath = ""; |
163 | 159 | projectRoot = ""; |
164 | 160 | targets = ( |
165 | - 8D5B49AC048680CD000E48DA /* BSInlinePreviewer */, | |
161 | + 8D5B49AC048680CD000E48DA /* NextThreadFinder */, | |
166 | 162 | ); |
167 | 163 | }; |
168 | 164 | /* End PBXProject section */ |
@@ -290,7 +286,7 @@ | ||
290 | 286 | /* End XCBuildConfiguration section */ |
291 | 287 | |
292 | 288 | /* Begin XCConfigurationList section */ |
293 | - 1DEB913A08733D840010E9CD /* Build configuration list for PBXNativeTarget "BSInlinePreviewer" */ = { | |
289 | + 1DEB913A08733D840010E9CD /* Build configuration list for PBXNativeTarget "NextThreadFinder" */ = { | |
294 | 290 | isa = XCConfigurationList; |
295 | 291 | buildConfigurations = ( |
296 | 292 | 1DEB913B08733D840010E9CD /* Debug */, |