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
qd_QTImageMagic "qti*" Accept image files supported by QuickTime
qd_QTMovieMagic "qtm*" Accept movie files supported by QuickTime

WARNING QT magic types will not work on Windows, unless QuickTime is installed on the machine.

Example

   // Accept text files, images, and QuickTime movies

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

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

$error:=QD_SetDroppableFileUTIs(xDrop;$fileUTIs)

Related commands

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