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

Yaron Tadmor YaronT at HumanEyes.com
Tue Jun 26 05:46:14 PDT 2007


I totally understand you about apple's docs. They are quite annoying and
unclear in a lot of thing.

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

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

Yaron


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





More information about the wx-users mailing list