Comment #7 on issue 7499 by rhodes.neil: New Issue: Changing a file
extension does not work!
http://code.google.com/p/chromium/issues/detail?id=7499
For Mac OS, the behavior is more complicated than it appears.
If I try to change the name of sample to sample.reg, it gets saved as
sample.reg.txt.
However, If I try to change the name of sample to sample.html, I get the
following
dialog:
You have used the extension ".html" at the end of the name. The standard
extension is
".txt". You can choose to use the standard extension instead.
Use .txt Cancel Use .html
This appears to be related to the following documentation from NSSavePanel
allowsOtherFileTypes method:
If the user tries to save a filename with a recognized extension that's
not in
the list of allowed types they are presented with a dialog. If this
method
returns YES, then the dialog presents the option of using the extension
the user
specified.
Note the phrase "recognized extension". Apparently, .html is a recognized
extension,
while .reg is not.
I think the appropriate fix may be to provide a delegate method
panel:userEnteredFilename:confirmed:
which will put up the Safari-style dialog if any extension other than .txt
is present.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---