Open folders with Cocoa Document-based framework

btoth

Person that uses a Mac
I've been trying to figure out how to allow a user to open a folder using the Document-based framework in Cocoa. Is there a way to set it using the Document Types list in the target's properties? Or do I need to override one of the methods in the NSDocumentController class?

This has had me stumped for a while and I actually found it easier and more straight-forward to just handle all my windows myself rather than use the Cocoa framework for it.
 
Cocoa's document-based project framework automatically sets up Open and Save routines. I'll I'm trying to figure out is how let users choose to open a Folder as well as files in the Open window using what Apple provides.

Currently, I have my own Open function that I wrote that lets me do this, but I lose a lot of the "built-in" functionality of the Cocoa classes this way. I wasn't sure if there was just an HFS type code that I could use for folders or if there was some other option. I guess it's be easier to figure out if I could see the source code for Apple's classes. :D
 
Back
Top