It is interesting that this is what you came away with from this
discussion. I came away with the following:
1. MacType is used sometimes
2. File Extension is used sometimes
3. Neither MacType nor File Extension can be truly relied upon to
indicate file type or contents
4. Given number 4 above the only 'foolproof' way to handle a user
selected file is to check the file contents for what is expected and
either open the file or tell the user the selection is not valid.
Does it mean that your user can select files your application can't
handle? Yes. But, in my experience, a great many apps do that; Word
and Photoshop (or Illustrator) come to mind, and they present a
dialog indicating an unrecognized file after attempting to open/
convert it.
On Apr 26, 2006, at 12:38, Sven E Olsson wrote:
So my problem and question was:
How do I write an OpenDialog filter so the user only could select
xml files?
I explained that i found an 'workaround' when i create the filter...
And that generate, I don't know 70 -100 nonsense e-mails..
And it look that many said this is Not Mac like.
And it also looks that the mostly think that you could also only
create ONE filter in your app.
And 5-6 hours reading/writing e-mails...
--
David Glass - Gray Matter Computing
graymattercomputing.com - corepos.com
559-303-4915
Apple Certified Help Desk Specialist
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>