QD_GetDroppableFileUTIs

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

Returns the file Uniform Type Identifiers (UTIs) that are accepted by a QDrop plug-in area.

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

Parameter fileUTIs is a string array and it receives the file UTIs that are to be accepted by the area. In addition to standard file UTIs like "public.text" and "public.jpeg", 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 UTIs
 
C_LONGINT($error)
ARRAY STRING(255;$fileUTIs;0)
 
$error:=QD_GetDroppableFileUTIs (xDrop;$fileUTIs)
 

Related commands

QD_SetDroppableFileUTIs Configures a QDrop plug-in area to accept specific file UTIs on Mac OS X

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