QDrop
![]() |
![]() |
QD_SetDroppableFileTypes(areaRef; fileTypes):error | |||
![]() |
areaRef | Longint | Area reference |
![]() |
fileTypes | Array string | Droppable file types |
![]() |
error | Longint | Error result |
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 | "fold" | 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 |