[Mac, wx 2.8.1] file dialogs and OS-X packages

Vadim Zeitlin vadim at wxwidgets.org
Tue Jun 26 04:50:12 PDT 2007


[Stefan, sorry if you get this twice but I wanted to make sure you see it]

On Tue, 26 Jun 2007 14:46:14 +0200 Yaron Tadmor <YaronT at HumanEyes.com> wrote:

YT> Anyway, my point is that both when showing the save dialog and the open
YT> dialog the user should be able to specify whether packages are to be
YT> treated as files or as folders, and it seems you agree.

 Yes, I do. I still don't understand what the second flag is for, i.e. what
are the other possibilities as surely a single flag would be enough if
there were only 2 of them (treat packages as files/as directories).

YT> I'd be happy to make the change and commit a patch (as I'm in a need for
YT> this just now).
YT> Please tell me if you prefer a flag, or special method only for the Mac
YT> version? (or should it be in all versions and just do nothing on non-mac
YT> platforms).

 I think I'd prefer a special method which would exist for all platforms
but do nothing except under Mac (to avoid ifdef's in the code). But I'd
appreciate if Stefan could confirm this so I this directly to him as I'm
not sure if his problems with wx mailing lists are solved now.

[keeping the rest for Stefan's benefit if he hadn't received the previous
 messages]
YT> > -----Original Message-----
YT> > From: Vadim Zeitlin [mailto:vadim at wxwidgets.org]
YT> > Sent: Monday, June 25, 2007 10:08 PM
YT> > To: wx-users at lists.wxwidgets.org
YT> > Subject: Re: [Mac, wx 2.8.1] file dialogs and OS-X packages
YT> > 
YT> > On Mon, 25 Jun 2007 19:44:07 +0200 Yaron Tadmor <YaronT at HumanEyes.com>
YT> > wrote:
YT> > 
YT> > YT> I noticed that in the file dialog, when creating a save file
YT> dialog
YT> > the
YT> > YT> carbon flag kNavSupportPackages is not used, while in open files
YT> it is
YT> > YT> used.
YT> > YT>
YT> > YT> First, I was wondering if there's a reason for this?
YT> > 
YT> >  Undoubtedly yes but I don't know which...
YT> > 
YT> > YT> Second, I think that that in both save and open dialogs the usage
YT> of
YT> > YT> this flag needs to be kept up to the user. Basically this flag
YT> says
YT> > YT> whether the file dialog will treat packages as files or folders.
YT> > 
YT> >  Looking at the Apple docs, I'm a bit confused (as it often happens to
YT> me
YT> > when perusing this resource) about this flag and kNavAllowOpenPackages
YT> > interaction. Does it make sense to use the latter without the former?
YT> > 
YT> > YT> So ultimately, I'm suggesting a small change allowing to pass this
YT> > YT> option somehow. Perhaps as a file dialog flag.
YT> > 
YT> >  I agree that we should allow the developer to specify the values for
YT> this
YT> > flag (these flags?) but I'm not sure if we really want to assign a
YT> flag to
YT> > something that is so Mac-specific (at least I'm not aware of anything
YT> > equivalent on any other system). Maybe a special wxFileDialog method
YT> > (SetMacPackagesMode()?) would be better?

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list