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: FileType or something



On Aug 29, 2007, at 4:40 PM, Yves Poissant wrote:
From: "Laurence Harris" <email@hidden>

On Aug 29, 2007, at 5:58 PM, Yves Poissant wrote:

Here is the update on this issue: I traced the execution. NavCreateGetFileDialog() is called with a NavObjectFilterProc pointer. I traced what is happening in that filter proc and to my surprise, when a .hdr file is passed, say "image.hdr", the actual FSSpec filename that get passed to the filter proc is "image.hdr.txt" and of course, this is rejected. This file is named "image.hdr" in Finder. So where is that ".txt" extension being appended? Where is the magic there?

It sounds like the .txt is just being hidden in the Finder, although I thought the Finder always showed everything when there are multiple extensions like that.

Thanks. It turns out that "hide file extension" was turned ON for .txt files.

That's not quite how it works. Finder lets you control Get Info > Name & Extension > "[ ] Hide extension" for individual files. (And there is Preferences > Advanced > "[ ] Show all file extensions", which renders the individual settings moot.)


Larry wrote:
It sounds like the .txt is just being hidden in the Finder, although I thought the Finder always showed everything when there are multiple extensions like that.

Yes, that logic exists, but it takes into account whether the "buried" extension-like thing is actually a known extension. The logic is in LaunchServices, and in the case of "image.hdr.txt" it matters whether there is an application (known to LaunchServices) on the machine that claims ".hdr" documents.


Cheers,

--Dave

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

This email sent to email@hidden
References: 
 >FileType or something (From: "Yves Poissant" <email@hidden>)
 >Re: FileType or something (From: Uli Kusterer <email@hidden>)
 >Re: FileType or something (From: "Yves Poissant" <email@hidden>)
 >Re: FileType or something (From: Laurence Harris <email@hidden>)
 >Re: FileType or something (From: "Yves Poissant" <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.