• 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

iSightを使ってBooklog,MediaMarkerインポート用CSVファイルを生成するアプリ


Commit MetaInfo

Revision524ad219d40a6472a73f56b717b328fd68982858 (tree)
Time2011-03-02 23:25:14
Authormasakih <masakih@user...>
Commitermasakih

Log Message

[Mod] 10.5用に改変。

Change Summary

Incremental Difference

--- a/BEMainWindowController.m
+++ b/BEMainWindowController.m
@@ -139,11 +139,16 @@
139139 [panel setAllowedFileTypes:[NSArray arrayWithObject:@"csv"]];
140140 [panel setPrompt:NSLocalizedString(@"Export", @"Export")];
141141 [panel setTitle:NSLocalizedString(@"Export", @"Export")];
142- [panel setNameFieldStringValue:@"Import.csv"];
143142 [panel setCanCreateDirectories:YES];
144143 [panel setCanSelectHiddenExtension:YES];
145144
146- NSInteger res = [panel runModal];
145+ NSInteger res = 0;
146+ if([panel respondsToSelector:@selector(setNameFieldStringValue:)]) {
147+ [panel setNameFieldStringValue:@"Import.csv"]; // 10.6 only.
148+ res = [panel runModal];
149+ } else {
150+ res = [panel runModalForDirectory:nil file:@"Import.csv"];
151+ }
147152 if(res == NSCancelButton) return;
148153
149154 BEBooksExporter *exporter = [BEBooksExporter exporterWithType:accessoryController.type];