Is it OS X ??

   dim PNGtype as New FileType
   PNGtype.Name = "PNGf"
   PNGtype.MacType = "PNGf"
   PNGtype.Extensions = "png"

You must have a MacType .. and If I remember correct there was some  
issue with the name .. that code works for me in a drop window. BUT  
THE FILE MUST HAVE A MacType!!  It do not matter what the file  
extension is.

Sven E




On 2007-03-23, at 19:46, Tim Jones wrote:

> On Mar 23, 2007, at 11:05 AM, Tim Jones wrote:
>
>> HI Folks,
>>
>> I'm trying to use the OpenDialog to allow a user to only select files
>> that end in ".tar.gz" or ".tgz".  I've created a Filetype entry
>> called GzipTarFile that has the extensions field containing:
>>
>>      .tgz, .tar.gz
>
> I've dumped the FileType class and generated the Filetype in code as
> demonstrated in the LR:
>
>       Dim dlg As OpenDialog
>       Dim f As FolderItem
>       Dim gzipTarFile As New FileType
>       gzipTarFile.Names = "gzip compressed tar file"
>       gzipTarFile.Extensions = "tgz;tar.gz"
>
>       dlg.InitialDirectory = DesktopFolder
>       dlg.Filter = gzipTarFile
>       f = dlg.ShowModalWithin(Self)
>
> and all files are still selectable when the dialog is displayed.
>
> Thoughts and redirection appreciated.
>
> Tim
> --
> Tim Jones
> [EMAIL PROTECTED]
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
>



Sven E
-----------------------
REALbasic 2007R1 OS X 10.4.8 Intel and 10.4.6 PPC
SEEdit Maxi THE XHTML EDITOR FOR MACINTOSH
http://www.seedit.info



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to