Hi again,

I am some scared to talk about this on the list, last time I try to  
explain that this do not work, I get a whole bunch of private e-mails  
that I blame RS and REALbasic. A workaround I found to get my (and an  
another user) things to work, was trying to be stopped by a bug-report.

So I think I can't help more.

Sven E



On 2007-03-23, at 20:15, Tim Jones wrote:

> On Mar 23, 2007, at 11:57 AM, Sven E Olsson wrote:
>
>> Is it OS X ??
>
> Yes.
>
>>    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.
>
> Then that is a bad thing since tar and gzip don't apply a creator
> code or filetype when they are creating files...
>
> I guess the question is - is this a bug since the Extensions property
> implies that I can select files by their extension(s).
>
> Thanks,
>
> Tim
> --
> Tim Jones
> [EMAIL PROTECTED]
>
>> 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.
>>>
>
> _______________________________________________
> 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