Mac file dialog extensions [2.8.1, Mac OS-X, xCode 2.4.1]
Vadim Zeitlin
vadim at wxwindows.org
Sun Mar 4 13:37:53 PST 2007
On Wed, 21 Feb 2007 18:11:23 +0200 Yaron Tadmor <YaronT at HumanEyes.com> wrote:
YT> Looking at the code in Mac/Carbon/FileDlg.cpp, at NavEventProc, in
YT> response to the kNavCBPopupMenuSelect event, I noticed that the code
YT> takes the LAST extension from the filter and attaches it to the file.
YT>
YT> I find this a bit strange, and I would expect the FIRST extension of
YT> each file type to be the most dominant one, so that it's used as the
YT> default extension if none is supplied.
YT>
YT> Is there any reason for using the last extension (other than a slightly
YT> simpler code)?
I don't think so. If you can make a patch fixing this problem (please see
http://www.wxwidgets.org/technote/patches.htm) it would be appreciated.
TIA,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list