Re: Plugins and shared code question.,
Re: Plugins and shared code question.,
- Subject: Re: Plugins and shared code question.,
- From: Mike Abdullah <email@hidden>
- Date: Mon, 25 Jun 2007 19:50:05 +0100
One thought that occurs is that you could place the code in a bundle.
Then, at load time, use ClassForClassName() or some similar method to
determine if a copy of the bundle has already been loaded. If it
hasn't, go ahead and load the bundle.
Of course you do then have to worry about keeping the code up to date
in both plugins.
A better approach might be to actually install a framework in ~/
Library/Frameworks rather than within the plugin bundles.
Mike.
On 25 Jun 2007, at 06:39, Scott Andrew wrote:
I have 2 iPhoto plugins that share some very common code that lives
in a couple of static libraries. However i am seeing some weird
behavior where if both plug-in's are installed their code doesn't
work. I get some weird behavior where code is stepped on in one
plug-in by the other. Has anyone seen this? Does this happen
because the code is both living in the same address space and they
have the same class names? Can i not share common code between
them? I don't think a framework would solve the problem since the
code would still be loaded into the same address space. Any
suggestions?
Scott Andrew
_______________________________________________
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:
40mikeabdullah.net
This email sent to email@hidden
_______________________________________________
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