Re: NSDocument opening folders
Re: NSDocument opening folders
- Subject: Re: NSDocument opening folders
- From: Ken Thomases <email@hidden>
- Date: Tue, 5 Aug 2008 23:51:25 -0500
On Aug 5, 2008, at 10:43 PM, Chris Idou wrote:
I have a document based application that needs to be able to open
folders.
Generic folders (folders as folders)? Or document packages (special
folders treated as a single document)?
Either way, you need to declare your application's support for the
proper document type. See: http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/Concepts/DocTypePList.html
For the former, you would use the OSType 'fold' and/or the UTI
"public.folder" (kUTTypeFolder).
For the latter, you would declare your own custom extension for the
package and indicate that it is a package type (LSTypeIsPackage).
Cheers,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden