How to remove extension while saving a folder
How to remove extension while saving a folder
- Subject: How to remove extension while saving a folder
- From: Thomas Lachand-Robert <email@hidden>
- Date: Sat, 18 Dec 2004 22:32:18 +0100
Hi all,
I have a problem while exporting files in my app. It allows HTML export
in two ways: as a single file, or as a "self-contained" folder (the
latter is more suitable if the document contains images for instance).
The problem is that the info.plist system apparently doesn't allow
files types with no extensions, which is annoying for folders. More
precisely, this works:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>folder</string>
</array>
<key>CFBundleTypeName</key>
<string>HTML folder</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>fold</string>
</array>
<key>CFBundleTypeRole</key>
<string>None</string>
<key>LSTypeIsPackage</key>
<false/>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>html</string>
</array>
<key>CFBundleTypeName</key>
<string>HTML document</string>
<key>CFBundleTypeRole</key>
<string>None</string>
<key>LSTypeIsPackage</key>
<false/>
</dict>
but if I remove the extension "folder", or try to let it empty, the
save Panel behaves weird: it doesn't remove the extension, but adds
some others in the file name if I change the type with the popup menu.
So what is the way to export to a new folder (not a package) with no
extension?
Thanks,
Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet à la chose. >> Molière, Tartuffe.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden