I want to create a Document Package bundle so I added appropriate information to my application’s Info.plist and created a test folder with an extension using the console. Finder shows the folder as a package/bundle with the icon I set in the plist and will try to open it in my application when I double click.
All well and good, however Finder is showing “folder.extension” even when extensions are hidden. I can remove the extension using Finder and the folder will show as the package “folder” and has a real name of “folder.extension”. How can I programmatically make the folder so that Finder doesn’t show the extension ?
As given in the answer mentioned by user Eonil, you can do this via NSFileManager with a little Objective-C: