Search code examples
objective-cmacoscocoansfilemanager

NSFileManager Create a .app like file/folder in cocoa


I'd like to create a folder/file (similar to how the .app files/folders work) so that I can have a directory within my file. But still show the document icon that I setup via the xcode project interface under the info panel.

No idea how to go about this, any ideas?

Solution:

So basically, you just hit an option in Xcode under the document saying that you do want it to be a bundle. Then you just create a folder with the extension you have in your document (info.plist). Thanks y'all.


Solution

  • I think what you are looking for are Packages.

    See About Bundles and Document Packages for more details.