Specify what happens on OS X with ;-separated globs.

Also, update the `path-dialog%' intro -- it is no longer similar to the
dialog under X.
This commit is contained in:
Eli Barzilay 2011-06-03 02:35:52 -04:00
parent b6225f66a5
commit 3ecdd3bc59
2 changed files with 11 additions and 4 deletions

View File

@ -9,10 +9,10 @@
@defclass[path-dialog% dialog% ()]{
The @scheme[path-dialog%] class implements a platform-independent
file/directory dialog. The dialog is the same as the dialog under X
for the @scheme[get-file], @scheme[put-file], @scheme[get-directory],
and @scheme[get-file-list] procedures, but considerable extra
functionality is available through the @scheme[path-dialog%] class.
file/directory dialog. The dialog is similar in functionality to the
@scheme[get-file], @scheme[put-file], @scheme[get-directory], and
@scheme[get-file-list] procedures, but considerable extra functionality
is available through the @scheme[path-dialog%] class.
@defconstructor[([label (or/c label-string? false/c) #f]

View File

@ -57,7 +57,14 @@ Under Windows and X, @scheme[filters] determines a set of filters from
which the user can choose in the dialog. Each element of the
@scheme[filters] list contains two strings: a description of the filter
as seen by the user, and a filter pattern matched against file names.
Pattern strings can be a simple ``glob'' pattern, or a number of glob
patterns separated by a @litchar[";"] character.
Under X, a @racket["*.*"] pattern is implicitly replaced with @racket["*"].
Under Mac OS X, suffix names are extracted from all globs that match a
fixed suffix (e.g., two suffixes of @racket["foo"] and @racket["bar"]
are extracted from a @racket["*.foo;*.bar;*.baz*"] pattern), and files
that have any of these suffixes in any filter are selectable; a
@racket["*.*"] glob makes all files available for selection.
See also @scheme[path-dialog%].