MultipleFileOpenDialog fileTypes bug fix

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

MultipleFileOpenDialog fileTypes bug fix

Louis Sumberg-2
I don't know how I missed this one since I use Ian's MultipleFileOpenDialog
goodie quite a bit.  Add the following line (after "self winStruct") in
MultipleFileOpenDialog>>prepareStruct so that fileTypes works:

    fileTypes: (self fileTypesStringFromSpecs: self fileTypes);

You can test it with something like this:

    MultipleFileOpenDialog new
        caption: 'Choose one or more files';
        fileTypes: (Array
            with: #('Text (*.txt)' '*.txt')
            with: #('Rich text (*.rtf)' '*.rtf'));
        showModal

Andy/Blair: Any thoughts on incorporating this package in the base
distribution?  I find it very useful - a good example of "Great things come
in small packages" (or however that expression goes).

-- Louis


Reply | Threaded
Open this post in threaded view
|

Re: MultipleFileOpenDialog fileTypes bug fix

Ian Bartholomew-17
Louis,
>                       Add the following line (after "self winStruct") in
> MultipleFileOpenDialog>>prepareStruct so that fileTypes works:
>
>     fileTypes: (self fileTypesStringFromSpecs: self fileTypes);

Many thanks. I'll include it in the next web site update.

Ian