• 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
Bundle-dependent file opening...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: AltiVec optimization in Cocoa?
  • Next by Date: Re: Text fields doesn't draw in a custom view
  • Previous by thread: Re: Text fields doesn't draw in a custom view
  • Next by thread: NSStepper and Time
  • Index(es):
    • Date
    • Thread