Re: plug-in problem
Re: plug-in problem
- Subject: Re: plug-in problem
- From: "M. Uli Kusterer" <email@hidden>
- Date: Tue, 2 Sep 2003 15:02:43 +0200
At 3:42 Uhr -0700 02.09.2003, Jon Hull wrote:
I am getting the following errors in the console:
1)Both XXX and YYY have implementations of class CurrentAssignment
2)objc: thread is already initializing this class!
I am a pretty good programmer, but I am afraid that this is beyond me.
I would appreciate any insight that you may have.
Jon,
I think the problem is that you're using a class as your
plugin-interface, instead of a protocol. Since both your app and your
plugin include an implementation of that class, the linker doesn't
know which one to choose (after all, one of them could be newer, or
they could be completely different and only accidentally have the
same name -- the compiler isn't able to tell).
You'd probably have to put that class in a separate framework, and
have both your app and the plugin link to that framework instead of
each having their own implementation. Or, if an application itself
may export symbols (used to be possible in CFM, don't know about
MachO), you could just have your plugin link in the application's
version, which is what you really want.
One of the Cocoa pros here (Cocoa-Dev) will be able to tell you how
this can actually be achieved. If you find out on your own, be sure
to let this list know, since this seems to be a common problem. I had
it in ResKnife as well, but then realized that using an interface is
actually a much cleaner implementation, as it gives the host
application more freedom in how it implements the plugin interface.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.