f



Mac file dialog extensions [2.8.1, Mac OS-X, xCode 2.4.1]

------_=_NextPart_001_01C755D2.E5708505
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi

Looking at the code in Mac/Carbon/FileDlg.cpp, at NavEventProc, in
response to the kNavCBPopupMenuSelect event, I noticed that the code
takes the LAST extension from the filter and attaches it to the file.

I find this a bit strange, and I would expect the FIRST extension of
each file type to be the most dominant one, so that it's used as the
default extension if none is supplied.

Is there any reason for using the last extension (other than a slightly
simpler code)?

Thanx
Yaron Tadmor


------_=_NextPart_001_01C755D2.E5708505
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7638.1">
<TITLE>Mac file dialog extensions [2.8.1, Mac OS-X, xCode 2.4.1]</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P DIR=3DLTR><SPAN LANG=3D"en-us"></SPAN><SPAN LANG=3D"en-us"><FONT =
SIZE=3D2 FACE=3D"Arial">Hi</FONT></SPAN></P>

<P DIR=3DLTR><SPAN LANG=3D"en-us"></SPAN><SPAN LANG=3D"en-us"><FONT =
SIZE=3D2 FACE=3D"Arial">Looking at the code in Mac/Carbon/FileDlg.cpp, =
at NavEventProc, in response to the</FONT></SPAN><SPAN =
LANG=3D"en-us"></SPAN><SPAN LANG=3D"en-us"> <FONT SIZE=3D2 =
FACE=3D"Arial">kNavCBPopupMenuSelect</FONT></SPAN><SPAN =
LANG=3D"en-us"></SPAN><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"Arial"> event, I noticed that the code takes the LAST extension =
from the filter and attaches it to the file.</FONT></SPAN></P>

<P DIR=3DLTR><SPAN LANG=3D"en-us"></SPAN><SPAN =
LANG=3D"en-us"></SPAN></P>

<P DIR=3DLTR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">I find =
this a bit strange, and I would expect the FIRST extension of each file =
type to be the most dominant one, so that it's used as the default =
extension if none is supplied.</FONT></SPAN><SPAN =
LANG=3D"en-us"></SPAN><SPAN LANG=3D"en-us"></SPAN></P>

<P DIR=3DLTR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Is there =
any reason for using the last extension (other than a slightly simpler =
code)?</FONT></SPAN></P>

<P DIR=3DLTR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"Arial">Thanx</FONT></SPAN></P>

<P DIR=3DLTR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Yaron =
Tadmor</FONT></SPAN></P>

<P DIR=3DLTR><SPAN LANG=3D"en-us"></SPAN><SPAN =
LANG=3D"en-us"></SPAN></P>

</BODY>
</HTML>
------_=_NextPart_001_01C755D2.E5708505--

0
YaronT
2/21/2007 4:11:23 PM
comp.soft-sys.wxwindows 21076 articles. 0 followers. Post Follow

1 Replies
897 Views

Similar Articles

[PageSpeed] 59

On Wed, 21 Feb 2007 18:11:23 +0200 Yaron Tadmor <YaronT@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/


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wx-users-help@lists.wxwidgets.org

0
vadim
3/4/2007 9:37:53 PM
Reply: