Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザーがダイアログで選択したファイルパスを文字列に保存するために使用できるダイアログを表示するにはどうすればよいですか? 私は周りを検索しましたが、開いているダイアログと保存ダイアログしか見つかりません。ファイルの保存ダイアログのようなものが必要ですが、「名前を付けて保存」のものは必要ありません ありがとう
ユーザーがファイル名を選択するのではなく、既存のフォルダーを選択するだけでよいということですか? その場合はNSOpenPanel、canChooseFilesset toNOおよびcanChooseDirectoriesset toを使用しYESます。
NSOpenPanel
canChooseFiles
NO
canChooseDirectories
YES