QDrop
![]() |
![]() ![]() |
QD_GetDroppableFileTypes(areaRef; fileTypes):error | |||
![]() |
areaRef | Longint | Area reference |
![]() |
fileTypes | Array string | Droppable file types |
![]() |
error | Longint | Error result |
Returns the file types that are accepted by a QDrop plug-in area.
Parameter areaRef is the reference to the plug-in area.
Parameter fileTypes is a string array and it receives 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
`Retrieve file types C_LONGINT($error) ARRAY STRING(15;$fileTypes;0) $error:=QD_GetDroppableFileTypes (xDrop;$fileTypes) |
Related commands
QD_SetDroppableFileTypes | Configures a QDrop plug-in area to accept specific file types |