Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Restricting statndard GetFile to particular types



I have the same question and will be eager to hear an answer.
 
Thanks,
 
Alex

Elliotte Harold <email@hidden> wrote:
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:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden

References: 
 >Restricting statndard GetFile to particular types (From: Elliotte Harold <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.