Renaming the "Cancel" button for NSOpenPanel
Renaming the "Cancel" button for NSOpenPanel
- Subject: Renaming the "Cancel" button for NSOpenPanel
- From: "Theodore H. Smith" <email@hidden>
- Date: Fri, 16 Mar 2007 21:58:32 +0000
Hi people,
I've got an app, that's using NSOpenPanel to choose folders. We allow
the user to choose where they export their files to.
But if they press cancel, we'll just export the file to a default
location. It's not a save feature, it's an export feature.
Anyhow, so this I think is misleading. It's not really "cancelling"
the export, it's "using the default location".
Can I rename the cancel button, to "Use Default Location" in
NSOpenPanel?
I still want the escape key to activate the "cancel" button, and I
still want it to have the NSCancelButton return code. it will still
be a "cancel" button, not cancelling the export, but cancelling the
choosing of a default location.
Any ideas anyone? I don't see the answer in the Apple documentation.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden