[Mac, wx 2.8.1] file dialogs and OS-X packages
Vadim Zeitlin
vadim at wxwidgets.org
Mon Jun 25 13:08:08 PDT 2007
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/
More information about the wx-users
mailing list