QDrop
![]() |
![]() ![]() |
QD_SetDroppableFileTypes(areaRef; fileTypes):error | |||
![]() |
areaRef | Longint | Area reference |
![]() |
fileTypes | Array string | Droppable file types |
![]() |
error | Longint | Error result |
Note:
Since the use of file types is discouraged on Mac OS X since version 10.4, QDrop 1.5 offers new and better plug-in area configuration options via the QD_SetDroppableFileExtensions and QD_SetDroppableFileUTIs commands. Use one of these commands instead of QD_SetDroppableFileTypes. QD_SetDroppableFileTypes still exists only for backwards compatibility.
Configures a QDrop plug-in area to accept specific file types.
Parameter areaRef is the reference to the plug-in area.
Parameter fileTypes is a string array and it specifies the file types that are to accepted by the area. In addition to standard MacOS file types like "TEXT" and "PICT", QDrop uses a set of magic file types that provide extra matching criteria.
qd_anyFileMagic | "any*" | Accept any file |
qd_folderMagic | "dir*" | Accept folders |
qd_QTImageMagic | "qti*" | Accept image files supported by QuickTime |
qd_QTMovieMagic | "qtm*" | Accept movie files supported by QuickTime |
Example
`Accept text files, QuickTime images, and folders C_LONGINT($error) ARRAY STRING(15;$fileTypes;3) $fileTypes{1}:="TEXT" $fileTypes{2}:=qd_QTImageMagic $fileTypes{3}:=qd_folderMagic $error:=QD_SetDroppableFileTypes (xDrop;$fileTypes) |
Related commands
QD_GetDroppableFileTypes | Returns the file types that are accepted by a QDrop plug-in area |