[ wxwindows-Bugs-1404132 ] Different Save FileDialog result on Mac

SourceForge.net noreply at sourceforge.net
Mon May 21 21:24:38 PDT 2007


Bugs item #1404132, was opened at 2006-01-12 20:21
Message generated for change (Comment added) made by csomor
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1404132&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxMac specific
Group: Platform specific
>Status: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: Alex Greif (greifa)
Assigned to: Stefan Csomor (csomor)
Summary: Different Save FileDialog result on Mac

Initial Comment:
I just found a case where the Mac wxWidgets
implementation differs from
the windows version.

--- wxPython snippet ---
FOTOBUCH_FILE_WILDCARDS = 'Fotobuch-XXL (*.fbxxl)|*.fbxxl'
dlg = wx.FileDialog(
           self, message=res.TEXT_SAVE_FOTOBUCH_AS,
defaultDir=defaultDir,
           defaultFile='',
wildcard=FOTOBUCH_FILE_WILDCARDS,
style=wx.SAVE | wx.CHANGE_DIR)

If I enter the filename eg.
testFile
then dlg.GetPath()
returns on the Mac <path>/testFile
but
returns on windows <path>/testFile.fbxxl

So on the Mac no suffix is added automatically, but is
done on windows.

The same behaviour can can be seen in the wxPython Demo
> Common
Dialogs > FileDialog > SAVE Button

----------------------------------------------------------------------

>Comment By: Stefan Csomor (csomor)
Date: 2007-05-22 06:24

Message:
Logged In: YES 
user_id=81467
Originator: NO

yes, that's the default behaviour of the save box on mac, actually on mac
you should pass in a default filename, like eg "Untitled.fbxxl" and this
will give you the usual platform behaviour of having the name of the file
selected and the extension unselected. This will also give you a decent
behaviour on the other platforms.

Best,

Stefan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1404132&group_id=9863




More information about the wx-dev mailing list