Hi,

REALbasic 2005r4 Pro
Mac OS X 10.3.9

I create a File Type (TextFT) with:

Display Name:   text/RTFD
Object Name:    TextRTFD
MacType:                        <empty>
MacCreator:                     <empty>
Extensions:     .rtfd


in the code, I use:

        Case "text/TEXT", "text/RTF", "text/RTFD"
          // Place here the code to deal with TextFT


and in the ListBox I get: ".DS_Store" in the RTFD special treatment (*), and my rtfd files are rejected... [Yes, I know, since I do not have type and creators defined, the ".DS_Store" invisible file matches that condition, therefore are reported as RTFD file... BUT IT DOES NOT FOLLOWS THE EXTENSION BEHAVIOR...]

I added a line to reject files that starts with a dot (".") and the invisible ones. Now, the RTFD files are rejected _AND_ I do not get ".DS_Store".

BUT, I get rtf files (I put RTFf / ttxt in its definition)...



Nota: I quit and restart REALbasic 2005r4 but I saw the same behavior.


Question:

How do I set the File Type rtfd definition ?


Ideas ?


TIA,

Emile


PS: I searched with AppleScript what is the file type / type creator of the rtfd files, nuts: the entries are empty.


NOTA: yes, I know, rtfd files in reality are folder packages displayed as files by Mac OS X / Finder... But the important thing in that case, is the way REALbasic handle that, not what the files really are...


(*) TextFT file names are drawn using a special and unique color (as are GraphicsFT and some other types)...


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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to