• 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: Jeff Grimshaw <email@hidden>
  • Date: Thu, 6 May 2004 07:21:00 -0700

I'm looking for suggestions. I need to dynamically add document types to a NSDocument-based application that I'm developing. [...]

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.

That's true, but the document type is also passed in the call to loadDataRepresentation:ofType: and dataRepresentationOfType:. I'd like to do some processing based on the type and I'd also like the user to be able to configure the program to handle different types of documents.

But you can provide a "catch all" document type (i.e. OSType: "****", extension "*") so that your application can load all filetypes.

Yep, I've got that going on already.

Thanks,

--Jeff
_______________________________________________
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: Glenn Andreas <email@hidden>
References: 
 >Adding Document Types Programmatically (From: Jeff Grimshaw <email@hidden>)
 >Re: Adding Document Types Programmatically (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: NSTableView updating single cells
  • Next by Date: Re: NSApplicationMain const warning
  • Previous by thread: Re: Adding Document Types Programmatically
  • Next by thread: Re: Adding Document Types Programmatically
  • Index(es):
    • Date
    • Thread