Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Restricting statndard GetFile to particular types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Restricting statndard GetFile to particular types



Consider this code fragment:

       int[] types = new int[4];

        types[0] = QTUtils.toOSType("JPEG");
        types[1] = QTUtils.toOSType("GIFf");
        types[2] = QTUtils.toOSType("PICT");
        types[3] = QTUtils.toOSType("PNGf");

       QTFile firstImage = QTFile.standardGetFilePreview(types);

It's supposed to limit itself to picking GIF, JPEG, PNG, and PICT files. However, in fact it shows all files and allows the user to choose any file type. Any ideas? is this functionality just buggy or am I doing something wrong?

--
Elliotte Rusty Harold  email@hidden
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.