Plugin design question
Plugin design question
- Subject: Plugin design question
- From: Drew McCormack <email@hidden>
- Date: Wed, 11 Sep 2002 18:08:40 +0200
I want to make a modular application that utilizes plugins as much as
possible. Each plugin will basically be a filter, which acts on a model
(data) object. The model objects must be in the main application, but
will also need to be accessed within the plugins (of course). My
question is: how do I incorporate the model classes into the plugin?
1) I could just include the header file, but then linking would fail
for the plugin, right?
2) I guess I could create a framework with my model class, and add that
to the main application, and plugins. Is this the usual approach? Shame
to have to build an extra framework with only a few classes though.
3) I could make a protocol corresponding to each of my model classes,
and just use the protocol header in the plugins. This would work, I
think, but it seems ugly to have to make a protocol for each class you
want to use.
What is the standard way of approaching this problem?
Drew
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ...
Dr. Drew McCormack
Trade Strategist (www.trade-strategist.com)
Trading simulation software for Mac OS X
_______________________________________________
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.