Re: Adding Document Types Programmatically
Re: Adding Document Types Programmatically
- Subject: Re: Adding Document Types Programmatically
- From: Allan Odgaard <email@hidden>
- Date: Thu, 6 May 2004 10:36:02 +0200
On 6. May 2004, at 6:25, Jeff Grimshaw wrote:
I'm looking for suggestions. I need to dynamically add document types
to a NSDocument-based application that I'm developing. [...]
This makes little sense -- The document types are used by
LaunchServices/Finder to learn which applications can open a given
filetype and by NSApplication/NSDocumentController to know which class
it should instantiate to the document type.
If this changes at run-time, how should Finder know if your application
can handle a given document (while your program is not running) and/or
which class to instantiate for the document, are the number of document
classes not fixed?
But you can provide a "catch all" document type (i.e. OSType: "****",
extension "*") so that your application can load all filetypes.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.