Plugin Information
Plugin Information
- Subject: Plugin Information
- From: Rick Langschultz <email@hidden>
- Date: Mon, 14 Apr 2008 01:30:20 -0500
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 (email@hidden)
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:
This email sent to email@hidden