controlling "SAVE" button in NSSavePanel
controlling "SAVE" button in NSSavePanel
- Subject: controlling "SAVE" button in NSSavePanel
- From: Kirk Kerekes <email@hidden>
- Date: Fri, 28 Apr 2006 09:46:16 -0500
I have an accessoryView in an NSSavePanel that gathers essential
information (a passphrase) from the user for which there can be no
valid default. I would like to disable the OK (save) button in the
NSSavePanel until the passphrase is provided. While NSSavePanel
provides a number of validation delegate methods, none of these
actually disable the button -- the panel leaves it enabled, and just
ignores it if validation fails. This would seem to be atrocious UI
design.
While I have some hacky approaches available, I am hoping that
someone has some wisdom to shed on this -- a genuinely robust method
that anticipates future changes to NSSavePanel.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden