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

Stefan Csomor csomor at advancedconcepts.ch
Tue Jun 26 11:24:57 PDT 2007


Hi

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

thanks for sending twice, this time I got them ...

> 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).

I think on flag / method-pair should be sufficient

> 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.

you mean a method to indicate 'treat packages as folders' as a instance method on a dialog or as a static method. The problem with instance methods would be that the one-liners like wxFileSelector (although if you pass all params this won't fit onto one line;-) wouldn't be supported, therefore I'd slightly lean towards a wxFD_MAC_ALLOW_OPEN_PACKAGES or something

kNavSupportPackages IMHO should always be on, because it allows the selection of a package as if it were a file, behavior does not change when it is set in the 'save' case, unless the AllowOpenPackages is used, so I'll turn that on for all cases

kNavAllowOpenPackages now this allows to descend into a package, by default this should not be used, but if someone knows that they want to get into the internals of something, they can turn this on

Best,

Stefan




More information about the wx-users mailing list