### QD_SetDroppableFileUTIs

QD_SetDroppableFileUTIs(areaRef; areaRef):error
| areaRef | Longint | Area reference
| fileUTIs | Array text | Droppable file UTIs
| error | Longint | Error result

Configure a QDrop area to accept specific file UTIs on Mac OS X

Parameter areaRef is the reference to the plug-in area.

Parameter fileUTIs is a text array that specifies the file Uniform Type Identifiers that will be accepted by the area.

In addition to standard file UTIs such as "public.text" and "public.jpeg", a set of magic file types that provide extra matching criteria can also be used.

qd_anyFileMagic | "any*" | Accept any file
qd_folderMagic | "dir*" | Accept folders

Example

       // Accept text files and images

    C_LONGINT($error)
    ARRAY TEXT($fileUTIs;2)

    $fileUTIs{1}:="public.text"
    $fileUTIs{2}:="public.image"

    $error:=QD_SetDroppableFileUTIs(xDrop;$fileUTIs)

Related commands

QD_GetDroppableFileUTIs | Get the file UTIs accepted by a QDrop area on Mac OS X