I am using NSOpenPanel to select the folder by the user where I can copy some files programatically.
NSOpenPanel *panelOpen = [NSOpenPanel openPanel];
[panelOpen setMessage:@"Please select a location to save file(s)."];
[panelOpen setCanChooseDirectories:YES];
[panelOpen setCanCreateDirectories:YES];
This opens the Open dialog with the button "Open". I want to change the button text to "Choose" or "Select" instead of "Open".
Is this possible?
As clearly visible from the documentation - note look into NSSavePanel
which NSOpenPanel inherits from.
You can use setPrompt:
for what you want to achieve.
You are looking for setPrompt:
provided by NSOpenPanel
's superclass NSSavePanel
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With