• 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 loading frameworks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plugins loading frameworks


  • Subject: Re: Plugins loading frameworks
  • From: David Alter <email@hidden>
  • Date: Wed, 26 Jul 2006 16:41:47 -0700


On Jul 26, 2006, at 3:01 PM, Sherm Pendley wrote:

On Jul 26, 2006, at 5:49 PM, David Alter wrote:

I have a plugin that uses a third party framework. I include the framework as part of the bundle in "Content/Resources/Frameworks" directory. It appears that because it is a plugin it does not find the framework. I can build this plugin as an application and it finds the framework just fine. Fo now I have been putting the framework in ~/Libraries/Frameworks/. That works fine too. I would like to have the frameworks as part of my plugins bundle. Is there some simple trick I can do for this to load?

For Tiger and newer, yes. Build the framework with an install_name that begins with @loader_path instead of @executable_path. Or use install_name_tool to change the framework's install_name.

I'm still a little lost. I have two new questions.

1) Where in the xCode project file for the framework can I set the installer_name. I do not see it an any of the build settings.

2) I just read up on the @loader_path and let me see if I understand this correctly. This is the relative path of the what ever loads this Framework. So my plugin that wants to load this framework has the framework in MyPlugin.bundle/Contents/Frameworks/GreatCode.framework. I would set me @loader_path on GreatCode.framework to some thing like

	@ loader_path/../Frameworks/GreatCode.framework/Versions/A/GreatCode

Is that correct?

thanks again for the help

-dave

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net




_______________________________________________
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


  • Follow-Ups:
    • Re: Plugins loading frameworks
      • From: Nick Zitzmann <email@hidden>
References: 
 >Plugins loading frameworks (From: David Alter <email@hidden>)
 >Re: Plugins loading frameworks (From: Sherm Pendley <email@hidden>)

  • Prev by Date: universal/intel zlib in framework
  • Next by Date: Re: Converting mod date from FSCatalogInfo to NSDate
  • Previous by thread: Re: Plugins loading frameworks
  • Next by thread: Re: Plugins loading frameworks
  • Index(es):
    • Date
    • Thread