• 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

Revision1624db73b02b5a3582a9da16d6404d5f77e08de5 (tree)
Time2009-05-06 10:41:02
Authormasakih <masakih@user...>
Commitermasakih

Log Message

ファイルのダウンロード時に状況シートを出すようにした。

git-svn-id: svn+ssh://macmini/usr/local/svnrepos/BSLinkConductor/BSLinkConductor@14 061f2d1e-a732-4c5b-b008-8f2f835f3f04

Change Summary

Incremental Difference

--- a/BSLinkConductor.h
+++ b/BSLinkConductor.h
@@ -25,6 +25,9 @@
2525 HMTemporaryFolder *tempFolder;
2626 NSMutableDictionary *tempFileDict;
2727 NSMutableDictionary *urlItemDict;
28+
29+ IBOutlet NSWindow *window;
30+ IBOutlet NSProgressIndicator *progress;
2831 }
2932
3033 - (PreviewerSelector *)previewSelector;
--- a/BSLinkConductor.m
+++ b/BSLinkConductor.m
@@ -268,8 +268,39 @@ additionalEventParamDescriptor:nil
268268 }
269269
270270 #pragma mark #### download ####
271+- (void)loadProgressPanel
272+{
273+ if(window) return;
274+
275+ NSBundle *bundle = [NSBundle bundleForClass:[self class]];
276+ [bundle loadNibFile:@"BSLCProgressPanel"
277+ externalNameTable:[NSDictionary dictionaryWithObject:self forKey:NSNibOwner]
278+ withZone:[self zone]];
279+}
280+- (void)openProgressPanel
281+{
282+ [self loadProgressPanel];
283+
284+ NSWindow *mainWindow = [NSApp mainWindow];
285+
286+ [NSApp beginSheet:window
287+ modalForWindow:mainWindow
288+ modalDelegate:nil
289+ didEndSelector:Nil
290+ contextInfo:NULL];
291+
292+ [progress startAnimation:self];
293+}
294+- (void)closeProgressPanel
295+{
296+ [progress stopAnimation:self];
297+ [window orderOut:self];
298+ [NSApp endSheet:window];
299+}
271300 - (void)beginDownloadURL:(NSURL *)anURL
272301 {
302+ [self openProgressPanel];
303+
273304 NSURLRequest *req;
274305
275306 req = [NSURLRequest requestWithURL:anURL
@@ -305,6 +336,8 @@ additionalEventParamDescriptor:nil
305336
306337 NSURL *tagetFileURL = [NSURL fileURLWithPath:filepath];
307338
339+ [self closeProgressPanel];
340+
308341 [self openLink:tagetFileURL withItem:item];
309342 }
310343 - (void)download:(NSURLDownload *)download didFailWithError:(NSError *)error
@@ -315,6 +348,8 @@ additionalEventParamDescriptor:nil
315348 [tempFileDict removeObjectForKey:targetURL];
316349 [urlItemDict removeObjectForKey:targetURL];
317350
351+ [self closeProgressPanel];
352+
318353 NSBeep();
319354 }
320355 @end
--- a/BSLinkConductor.xcodeproj/project.pbxproj
+++ b/BSLinkConductor.xcodeproj/project.pbxproj
@@ -15,6 +15,7 @@
1515 F4A2F5880F444E3000A84E18 /* BSLinkConductor.xib in Resources */ = {isa = PBXBuildFile; fileRef = F4A2F5860F444E3000A84E18 /* BSLinkConductor.xib */; };
1616 F4A2F58D0F458DA900A84E18 /* BSLCPreferences.m in Sources */ = {isa = PBXBuildFile; fileRef = F4A2F58C0F458DA900A84E18 /* BSLCPreferences.m */; };
1717 F4A2F97D0F4650DC00A84E18 /* HMTemporaryFolder.m in Sources */ = {isa = PBXBuildFile; fileRef = F4A2F97C0F4650DC00A84E18 /* HMTemporaryFolder.m */; };
18+ F4A807FE0FB118D000FD7FE3 /* BSLCProgressPanel.xib in Resources */ = {isa = PBXBuildFile; fileRef = F4A807FD0FB118D000FD7FE3 /* BSLCProgressPanel.xib */; };
1819 /* End PBXBuildFile section */
1920
2021 /* Begin PBXFileReference section */
@@ -42,6 +43,7 @@
4243 F4A2FA0F0F4663FF00A84E18 /* UTILDescription.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UTILDescription.h; path = ../bathyscaphe/misc/utilkit/UTILDescription.h; sourceTree = SOURCE_ROOT; };
4344 F4A2FA100F4663FF00A84E18 /* UTILDebugging.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UTILDebugging.h; path = ../bathyscaphe/misc/utilkit/UTILDebugging.h; sourceTree = SOURCE_ROOT; };
4445 F4A2FA110F4663FF00A84E18 /* UTILAssertion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UTILAssertion.h; path = ../bathyscaphe/misc/utilkit/UTILAssertion.h; sourceTree = SOURCE_ROOT; };
46+ F4A807FA0FB118C000FD7FE3 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/BSLCProgressPanel.xib; sourceTree = "<group>"; };
4547 F4F4DDC30F67D2D800C75461 /* PSPreviewerInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PSPreviewerInterface.h; sourceTree = "<group>"; };
4648 F4F4DDC40F67D2D800C75461 /* PSPreviewerItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PSPreviewerItem.h; sourceTree = "<group>"; };
4749 /* End PBXFileReference section */
@@ -88,6 +90,7 @@
8890 F4A2F5860F444E3000A84E18 /* BSLinkConductor.xib */,
8991 8D5B49B7048680CD000E48DA /* Info.plist */,
9092 089C167DFE841241C02AAC07 /* InfoPlist.strings */,
93+ F4A807FD0FB118D000FD7FE3 /* BSLCProgressPanel.xib */,
9194 );
9295 name = Resources;
9396 sourceTree = "<group>";
@@ -193,6 +196,7 @@
193196 files = (
194197 8D5B49B0048680CD000E48DA /* InfoPlist.strings in Resources */,
195198 F4A2F5880F444E3000A84E18 /* BSLinkConductor.xib in Resources */,
199+ F4A807FE0FB118D000FD7FE3 /* BSLCProgressPanel.xib in Resources */,
196200 );
197201 runOnlyForDeploymentPostprocessing = 0;
198202 };
@@ -229,6 +233,14 @@
229233 name = BSLinkConductor.xib;
230234 sourceTree = "<group>";
231235 };
236+ F4A807FD0FB118D000FD7FE3 /* BSLCProgressPanel.xib */ = {
237+ isa = PBXVariantGroup;
238+ children = (
239+ F4A807FA0FB118C000FD7FE3 /* English */,
240+ );
241+ name = BSLCProgressPanel.xib;
242+ sourceTree = "<group>";
243+ };
232244 /* End PBXVariantGroup section */
233245
234246 /* Begin XCBuildConfiguration section */
--- /dev/null
+++ b/English.lproj/BSLCProgressPanel.xib
@@ -0,0 +1,308 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.02">
3+ <data>
4+ <int key="IBDocument.SystemTarget">1050</int>
5+ <string key="IBDocument.SystemVersion">9G55</string>
6+ <string key="IBDocument.InterfaceBuilderVersion">672</string>
7+ <string key="IBDocument.AppKitVersion">949.43</string>
8+ <string key="IBDocument.HIToolboxVersion">353.00</string>
9+ <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
10+ <bool key="EncodedWithXMLCoder">YES</bool>
11+ <integer value="2"/>
12+ </object>
13+ <object class="NSArray" key="IBDocument.PluginDependencies">
14+ <bool key="EncodedWithXMLCoder">YES</bool>
15+ <string>com.apple.InterfaceBuilderKit</string>
16+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
17+ </object>
18+ <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
19+ <bool key="EncodedWithXMLCoder">YES</bool>
20+ <object class="NSCustomObject" id="1001">
21+ <string key="NSClassName">BSLinkConductor</string>
22+ </object>
23+ <object class="NSCustomObject" id="1003">
24+ <string key="NSClassName">FirstResponder</string>
25+ </object>
26+ <object class="NSCustomObject" id="1004">
27+ <string key="NSClassName">NSApplication</string>
28+ </object>
29+ <object class="NSWindowTemplate" id="1005">
30+ <int key="NSWindowStyleMask">1</int>
31+ <int key="NSWindowBacking">2</int>
32+ <string key="NSWindowRect">{{196, 445}, {235, 65}}</string>
33+ <int key="NSWTFlags">1610613760</int>
34+ <string key="NSWindowTitle">Window</string>
35+ <string key="NSWindowClass">NSWindow</string>
36+ <nil key="NSViewClass"/>
37+ <string key="NSWindowContentMaxSize">{3.40282e+38, 3.40282e+38}</string>
38+ <object class="NSView" key="NSWindowView" id="1006">
39+ <reference key="NSNextResponder"/>
40+ <int key="NSvFlags">256</int>
41+ <object class="NSMutableArray" key="NSSubviews">
42+ <bool key="EncodedWithXMLCoder">YES</bool>
43+ <object class="NSTextField" id="361478088">
44+ <reference key="NSNextResponder" ref="1006"/>
45+ <int key="NSvFlags">268</int>
46+ <string key="NSFrame">{{55, 39}, {125, 14}}</string>
47+ <reference key="NSSuperview" ref="1006"/>
48+ <bool key="NSEnabled">YES</bool>
49+ <object class="NSTextFieldCell" key="NSCell" id="323003629">
50+ <int key="NSCellFlags">68288064</int>
51+ <int key="NSCellFlags2">272761856</int>
52+ <string type="base64-UTF8" key="NSContents">5a++6LGh44KS44OA44Km44Oz44Ot44O844OJ5LitLi4uA</string>
53+ <object class="NSFont" key="NSSupport">
54+ <string key="NSName">LucidaGrande</string>
55+ <double key="NSSize">1.100000e+01</double>
56+ <int key="NSfFlags">3100</int>
57+ </object>
58+ <reference key="NSControlView" ref="361478088"/>
59+ <object class="NSColor" key="NSBackgroundColor">
60+ <int key="NSColorSpace">6</int>
61+ <string key="NSCatalogName">System</string>
62+ <string key="NSColorName">controlColor</string>
63+ <object class="NSColor" key="NSColor">
64+ <int key="NSColorSpace">3</int>
65+ <bytes key="NSWhite">MC42NjY2NjY2OQA</bytes>
66+ </object>
67+ </object>
68+ <object class="NSColor" key="NSTextColor">
69+ <int key="NSColorSpace">6</int>
70+ <string key="NSCatalogName">System</string>
71+ <string key="NSColorName">controlTextColor</string>
72+ <object class="NSColor" key="NSColor">
73+ <int key="NSColorSpace">3</int>
74+ <bytes key="NSWhite">MAA</bytes>
75+ </object>
76+ </object>
77+ </object>
78+ </object>
79+ <object class="NSProgressIndicator" id="874190627">
80+ <reference key="NSNextResponder" ref="1006"/>
81+ <int key="NSvFlags">1292</int>
82+ <object class="NSPSMatrix" key="NSDrawMatrix"/>
83+ <string key="NSFrame">{{69, 12}, {96, 12}}</string>
84+ <reference key="NSSuperview" ref="1006"/>
85+ <int key="NSpiFlags">16650</int>
86+ <double key="NSMinValue">2.000000e+01</double>
87+ <double key="NSMaxValue">1.000000e+02</double>
88+ </object>
89+ </object>
90+ <string key="NSFrameSize">{235, 65}</string>
91+ <reference key="NSSuperview"/>
92+ </object>
93+ <string key="NSScreenRect">{{0, 0}, {1680, 1028}}</string>
94+ <string key="NSMaxSize">{3.40282e+38, 3.40282e+38}</string>
95+ </object>
96+ </object>
97+ <object class="IBObjectContainer" key="IBDocument.Objects">
98+ <object class="NSMutableArray" key="connectionRecords">
99+ <bool key="EncodedWithXMLCoder">YES</bool>
100+ <object class="IBConnectionRecord">
101+ <object class="IBOutletConnection" key="connection">
102+ <string key="label">window</string>
103+ <reference key="source" ref="1001"/>
104+ <reference key="destination" ref="1005"/>
105+ </object>
106+ <int key="connectionID">8</int>
107+ </object>
108+ <object class="IBConnectionRecord">
109+ <object class="IBOutletConnection" key="connection">
110+ <string key="label">delegate</string>
111+ <reference key="source" ref="1005"/>
112+ <reference key="destination" ref="1001"/>
113+ </object>
114+ <int key="connectionID">9</int>
115+ </object>
116+ <object class="IBConnectionRecord">
117+ <object class="IBOutletConnection" key="connection">
118+ <string key="label">progress</string>
119+ <reference key="source" ref="1001"/>
120+ <reference key="destination" ref="874190627"/>
121+ </object>
122+ <int key="connectionID">10</int>
123+ </object>
124+ </object>
125+ <object class="IBMutableOrderedSet" key="objectRecords">
126+ <object class="NSArray" key="orderedObjects">
127+ <bool key="EncodedWithXMLCoder">YES</bool>
128+ <object class="IBObjectRecord">
129+ <int key="objectID">0</int>
130+ <object class="NSArray" key="object" id="1002">
131+ <bool key="EncodedWithXMLCoder">YES</bool>
132+ </object>
133+ <reference key="children" ref="1000"/>
134+ <nil key="parent"/>
135+ </object>
136+ <object class="IBObjectRecord">
137+ <int key="objectID">-2</int>
138+ <reference key="object" ref="1001"/>
139+ <reference key="parent" ref="1002"/>
140+ <string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string>
141+ </object>
142+ <object class="IBObjectRecord">
143+ <int key="objectID">-1</int>
144+ <reference key="object" ref="1003"/>
145+ <reference key="parent" ref="1002"/>
146+ <string key="objectName">First Responder</string>
147+ </object>
148+ <object class="IBObjectRecord">
149+ <int key="objectID">-3</int>
150+ <reference key="object" ref="1004"/>
151+ <reference key="parent" ref="1002"/>
152+ <string key="objectName">Application</string>
153+ </object>
154+ <object class="IBObjectRecord">
155+ <int key="objectID">1</int>
156+ <reference key="object" ref="1005"/>
157+ <object class="NSMutableArray" key="children">
158+ <bool key="EncodedWithXMLCoder">YES</bool>
159+ <reference ref="1006"/>
160+ </object>
161+ <reference key="parent" ref="1002"/>
162+ </object>
163+ <object class="IBObjectRecord">
164+ <int key="objectID">2</int>
165+ <reference key="object" ref="1006"/>
166+ <object class="NSMutableArray" key="children">
167+ <bool key="EncodedWithXMLCoder">YES</bool>
168+ <reference ref="361478088"/>
169+ <reference ref="874190627"/>
170+ </object>
171+ <reference key="parent" ref="1005"/>
172+ </object>
173+ <object class="IBObjectRecord">
174+ <int key="objectID">5</int>
175+ <reference key="object" ref="361478088"/>
176+ <object class="NSMutableArray" key="children">
177+ <bool key="EncodedWithXMLCoder">YES</bool>
178+ <reference ref="323003629"/>
179+ </object>
180+ <reference key="parent" ref="1006"/>
181+ </object>
182+ <object class="IBObjectRecord">
183+ <int key="objectID">6</int>
184+ <reference key="object" ref="323003629"/>
185+ <reference key="parent" ref="361478088"/>
186+ </object>
187+ <object class="IBObjectRecord">
188+ <int key="objectID">7</int>
189+ <reference key="object" ref="874190627"/>
190+ <reference key="parent" ref="1006"/>
191+ </object>
192+ </object>
193+ </object>
194+ <object class="NSMutableDictionary" key="flattenedProperties">
195+ <bool key="EncodedWithXMLCoder">YES</bool>
196+ <object class="NSMutableArray" key="dict.sortedKeys">
197+ <bool key="EncodedWithXMLCoder">YES</bool>
198+ <string>-1.IBPluginDependency</string>
199+ <string>-2.IBPluginDependency</string>
200+ <string>-3.IBPluginDependency</string>
201+ <string>1.IBEditorWindowLastContentRect</string>
202+ <string>1.IBPluginDependency</string>
203+ <string>1.IBWindowTemplateEditedContentRect</string>
204+ <string>1.NSWindowTemplate.visibleAtLaunch</string>
205+ <string>1.WindowOrigin</string>
206+ <string>1.editorWindowContentRectSynchronizationRect</string>
207+ <string>2.IBPluginDependency</string>
208+ <string>5.IBPluginDependency</string>
209+ <string>6.IBPluginDependency</string>
210+ <string>7.IBPluginDependency</string>
211+ </object>
212+ <object class="NSMutableArray" key="dict.values">
213+ <bool key="EncodedWithXMLCoder">YES</bool>
214+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
215+ <string>com.apple.InterfaceBuilderKit</string>
216+ <string>com.apple.InterfaceBuilderKit</string>
217+ <string>{{199, 661}, {235, 65}}</string>
218+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
219+ <string>{{199, 661}, {235, 65}}</string>
220+ <integer value="0"/>
221+ <string>{196, 240}</string>
222+ <string>{{202, 428}, {480, 270}}</string>
223+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
224+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
225+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
226+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
227+ </object>
228+ </object>
229+ <object class="NSMutableDictionary" key="unlocalizedProperties">
230+ <bool key="EncodedWithXMLCoder">YES</bool>
231+ <object class="NSArray" key="dict.sortedKeys">
232+ <bool key="EncodedWithXMLCoder">YES</bool>
233+ </object>
234+ <object class="NSMutableArray" key="dict.values">
235+ <bool key="EncodedWithXMLCoder">YES</bool>
236+ </object>
237+ </object>
238+ <nil key="activeLocalization"/>
239+ <object class="NSMutableDictionary" key="localizations">
240+ <bool key="EncodedWithXMLCoder">YES</bool>
241+ <object class="NSArray" key="dict.sortedKeys">
242+ <bool key="EncodedWithXMLCoder">YES</bool>
243+ </object>
244+ <object class="NSMutableArray" key="dict.values">
245+ <bool key="EncodedWithXMLCoder">YES</bool>
246+ </object>
247+ </object>
248+ <nil key="sourceID"/>
249+ <int key="maxID">10</int>
250+ </object>
251+ <object class="IBClassDescriber" key="IBDocument.Classes">
252+ <object class="NSMutableArray" key="referencedPartialClassDescriptions">
253+ <bool key="EncodedWithXMLCoder">YES</bool>
254+ <object class="IBPartialClassDescription">
255+ <string key="className">BSLinkConductor</string>
256+ <string key="superclassName">NSObject</string>
257+ <object class="NSMutableDictionary" key="outlets">
258+ <bool key="EncodedWithXMLCoder">YES</bool>
259+ <object class="NSMutableArray" key="dict.sortedKeys">
260+ <bool key="EncodedWithXMLCoder">YES</bool>
261+ <string>progress</string>
262+ <string>window</string>
263+ </object>
264+ <object class="NSMutableArray" key="dict.values">
265+ <bool key="EncodedWithXMLCoder">YES</bool>
266+ <string>NSProgressIndicator</string>
267+ <string>NSWindow</string>
268+ </object>
269+ </object>
270+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
271+ <string key="majorKey">IBProjectSource</string>
272+ <string key="minorKey">BSLinkConductor.h</string>
273+ </object>
274+ </object>
275+ <object class="IBPartialClassDescription">
276+ <string key="className">NSObject</string>
277+ <object class="NSMutableDictionary" key="actions">
278+ <bool key="EncodedWithXMLCoder">YES</bool>
279+ <object class="NSMutableArray" key="dict.sortedKeys">
280+ <bool key="EncodedWithXMLCoder">YES</bool>
281+ <string>showPreviewerPreferences:</string>
282+ <string>togglePreviewPanel:</string>
283+ </object>
284+ <object class="NSMutableArray" key="dict.values">
285+ <bool key="EncodedWithXMLCoder">YES</bool>
286+ <string>id</string>
287+ <string>id</string>
288+ </object>
289+ </object>
290+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
291+ <string key="majorKey">IBProjectSource</string>
292+ <string key="minorKey">BSImagePreviewerInterface.h</string>
293+ </object>
294+ </object>
295+ <object class="IBPartialClassDescription">
296+ <string key="className">NSObject</string>
297+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
298+ <string key="majorKey">IBProjectSource</string>
299+ <string key="minorKey">PSPreviewerInterface.h</string>
300+ </object>
301+ </object>
302+ </object>
303+ </object>
304+ <int key="IBDocument.localizationMode">0</int>
305+ <string key="IBDocument.LastKnownRelativeProjectPath">../BSLinkConductor.xcodeproj</string>
306+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
307+ </data>
308+</archive>