• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Plugins and shared code question.,
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plugins and shared code question.,


  • Subject: Re: Plugins and shared code question.,
  • From: Scott Andrew <email@hidden>
  • Date: Mon, 25 Jun 2007 14:50:57 -0700

Thats what I though.. Thank you very  much.

Scott


On Jun 25, 2007, at 2:38 PM, Uli Kusterer wrote:

On 25.06.2007, at 07: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?

Yes, it's probably the class names colliding. What I do is I simply have a #define. So if my class was originally called UKPluginHelper, I'd do:


#define UKPluginHelper UKPluginHelper_PluginA

for plugin A, and similarly for plugin B. You can do all of that in your prefix header.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de




_______________________________________________

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


References: 
 >Plugins and shared code question., (From: Scott Andrew <email@hidden>)
 >Re: Plugins and shared code question., (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: ObjC 3D engine
  • Next by Date: [SOLVED] NSTextView contained in a bezier-path
  • Previous by thread: Re: Plugins and shared code question.,
  • Next by thread: Re: Plugins and shared code question.,
  • Index(es):
    • Date
    • Thread