• 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: Shaun Wexler <email@hidden>
  • Date: Thu, 6 May 2004 10:02:01 -0700

On May 6, 2004, at 8:26 AM, Georg Tuparev wrote:

On May 6, 2004, at 10:36 AM, Allan Odgaard wrote:

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

But wouldn't be cooler if plugins could add document types?

They can. That's how my own application framework structure is based. All you need to do is add a category to NSDocumentController, and it's all able to be handled automatically*. I filed a couple enhancement requests almost a year ago and Apple seemed to explore those incidents often (for a while)... who knows? Maybe that will be a new feature added in 10.4?

*The only thing that I isn't finished is a method to update LaunchServices with the dynamically added app-to-doctype association. My first thought was to simply modify the app bundle's Info.plist and notify LS of the change using the new 10. API, but that would require admin priv's to remain persistent. Ideas?
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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: Ondra Cada <email@hidden>
References: 
 >Adding Document Types Programmatically (From: Jeff Grimshaw <email@hidden>)
 >Re: Adding Document Types Programmatically (From: Allan Odgaard <email@hidden>)
 >Re: Adding Document Types Programmatically (From: Georg Tuparev <email@hidden>)

  • Prev by Date: Loosely in the Window Menu with Diamonds
  • Next by Date: Sorting via intValue (Was NSValueTransformer subclass doesn't recognise copyWithZone.)
  • Previous by thread: Re: Adding Document Types Programmatically
  • Next by thread: Re: Adding Document Types Programmatically
  • Index(es):
    • Date
    • Thread