Re: Subclassing in plugins
Re: Subclassing in plugins
- Subject: Re: Subclassing in plugins
- From: Finlay Dobbie <email@hidden>
- Date: Fri, 25 Oct 2002 11:43:16 +0100
On Friday, October 25, 2002, at 11:19 am, Drew McCormack wrote:
The Molecule class is one of the classes duplicated in the main app
and the plugin. I thus conclude that including a class implementation
in both the main app and one or more plugins is illegal, and that
someone should tell Mike Beam. Is this conclusion correct?
Of course. You can't have two implementations of the same class, how on
earth would that work?
More importantly for me, what is the easiest way to be able to
subclass a class in the main application from within a plugin?
I also would like to know just how to use a class from the main app
from within a plugin. I thought I only needed to include the header
file of the class in the plugin to achieve this, but then I get a link
error. And if I include the implementation file of the class too,
well, then I am back where I started.
Specify -bundle_loader in LDFLAGS. See the linker docs for more info.
Either that, or you could use an internal framework (that's how I'm
currently doing it in a project, but it's a bit tedious setting up all
the targets).
-- Finlay
_______________________________________________
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.