• 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: Adding Document Types Programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Adding Document Types Programmatically
      • From: Georg Tuparev <email@hidden>
    • Re: Adding Document Types Programmatically
      • From: Jeff Grimshaw <email@hidden>
References: 
 >Adding Document Types Programmatically (From: Jeff Grimshaw <email@hidden>)

  • Prev by Date: Re: Array operators (was: Custom canRemove binding)
  • Next by Date: Custom NSCursor from images and 10.2 = no go ?
  • Previous by thread: Adding Document Types Programmatically
  • Next by thread: Re: Adding Document Types Programmatically
  • Index(es):
    • Date
    • Thread