Skip navigation.
 
mlRe: Plugins loading frameworks
FROM : David Alter
DATE : Thu Jul 27 01:41:47 2006

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

Related mailsAuthorDate
mlPlugins loading frameworks David Alter Jul 26, 23:49
mlRe: Plugins loading frameworks Nick Zitzmann Jul 26, 23:57
mlRe: Plugins loading frameworks Sherm Pendley Jul 27, 00:01
mlRe: Plugins loading frameworks David Alter Jul 27, 01:41
mlRe: Plugins loading frameworks Nick Zitzmann Jul 27, 02:37