Re: Adding Document Types Programmatically
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.