QD_SetDroppableFileUTIs

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

Configures a QDrop plug-in area to accept specific file Uniform Type Identifiers (UTIs) on Mac OS X.

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

Parameter fileUTIs is a string array and it specifies the file UTIs that are to accepted by the area.

In addition to standard file UTIs like "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

Example

`Accept text files, images, and QuickTime movies
 
C_LONGINT($error)
ARRAY STRING(255;$fileUTIs;3)
 
$fileUTIs{1}:="public.text"
$fileUTIs{2}:="public.image"
$fileUTIs{3}:=qd_QTMovieMagic
 
$error:=QD_SetDroppableFileUTIs (xDrop;$fileUTIs)
 

Related commands

QD_GetDroppableFileUTIs Returns the file UTIs that are accepted by a QDrop plug-in area on Mac OS X

QDrop © Escape
Generated by QDoc 2.8 on Thu, Oct 1, 2009 17:03:35