• 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: 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


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

  • Prev by Date: Re: Adding files to iTune library in Cocoa app
  • Next by Date: Re: int to NSString?
  • Previous by thread: Re: Plugins and shared code question.,
  • Next by thread: Re: Plugins and shared code question.,
  • Index(es):
    • Date
    • Thread