I'm working on a cocoa project. My project uses a preferences menu, and includes the option to save a set of preferences as a "." file (hidden files like .rvmrc or .vimrc). The problem is that after bringing up the NSSavePanel and clicking Save the system pops up and reminds me that "." is reserved for the system, which isn't very cool.
Is there some way to prevent the OS from firing that prompt?
Thanks!
You can subclass or make a category of NSSavePanel and override
-[NSSavePanel _legalNameCheck:]
AFAIK, checking for the dot name is all that routine does.
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