Bundle-dependent file opening...
Bundle-dependent file opening...
- Subject: Bundle-dependent file opening...
- From: Georg Tuparev <email@hidden>
- Date: Sun, 19 May 2002 14:36:46 +0200
Folks,
I have an App that has potentially many plugins (some of them are third
party). Each plugin can manipulate a specific file type. While
developing the application, I have no idea what bundles and file types
will be used, and BTW, the user is also free to select or deselect
plugins.
Currently the Application's Controller class implements the Open File
functionality in a very clumsy (IMO) way. It checks the extension of the
file to be opened, and searches through the list of all available
plugins (built during applicationDidFinishLaunching) to find the plugin
that can handle this file type and allocate the corresponding NSDocument
class. Though this works, it does not feel the right thing to do. Is
there a simpler and more elegant solution?
TIA
Georg Tuparev
Tuparev Technologies
Klipper 13
1186 VR Amstelveen
The Netherlands
Mobile: +31-6-55798196
_______________________________________________
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.