Hello everyone,

My application uses plugins from a support folder in /Library/ Application Support/AppName/Plugins/. The application searches this folder for all the plugins and loads them. But here is my dilemma: i want to put the plugin class name as the bundle identifier so that i can call methods from those classes when something in the main application is triggered.

For instance, I have a plugin called A.plugin, B.plugin, and C.plugin with Principal Classes named APluginClass, BPluginClass, and CPluginClass respectively. They conform to AppNameProtocol which has an installation, allocation/init, dealloc, and other class names.

My code uses NSString *bundlePath, and NSBundle *bundle. I want to have something like *bundlePathA, *bundlePathB, etc; and *bundleA, *bundleB, *bundleC. Is there a simple way that I can do this?

I have researched NSBundle on the Developer docs, and on apple.com, along with some code on google.com/codesearch .

Can anyone give me a pointer or two?

Thanks,

Rick L.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to