• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDocument opening folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSDocument opening folders (From: Chris Idou <email@hidden>)

  • Prev by Date: Re: Using performSelector: on super
  • Next by Date: Re: How to use a button to update an application with a text field value
  • Previous by thread: NSDocument opening folders
  • Next by thread: How to use a button to update an application with a text field value
  • Index(es):
    • Date
    • Thread