Re: Creating a subclass of an *unknown* object
Re: Creating a subclass of an *unknown* object
- Subject: Re: Creating a subclass of an *unknown* object
- From: Ofri Wolfus <email@hidden>
- Date: Wed, 15 Jun 2005 10:43:49 +0300
On 15/06/2005, at 03:27, Hamish Allan wrote:
On Tue, 14 Jun 2005 23:51:50 +0300, Ofri Wolfus
<email@hidden> wrote:
Hi all,
I'm creating a plugin for an application in which is not mine but is
open source so i have the code for it.
What i'm trying to do is to subclass an object that's within the app
and when my plugin is loaded, to pose it as the original object. The
problem is that i'm getting an undefined symbol error when when
compiling my plugin.
I *could* include the header and implementation files of the original
object within my plugin, but this means that if in a future version
this object will change and my plugin will be loaded, both versions
of the object will be loaded and this is not a good thing.
I think it's par for the course when you're trying to write a class-
posing plugin, though. You'll have to release another version of
your plugin for each future release of the app that is incompatible
at the binary level.
I just hoped there is a more clever way to do this without the need
to update the plugin for each new release (assuming that the methods
that my subclass overrides don't change but others do).
What should I do?
Make your plugin open source?
It will be open source. But as i said, i just hoped there is a better
way...
Best wishes,
Hamish
- Ofri
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden