using frameworks from bundles (why cannot that be done?)

akauppi

Registered
I'm curious why frameworks cannot be accessed from within plugins (bundles). As far as i've found, this is only stated (rather, in between lines) but the real-world need for such is obvious:

e.g. SDL, SDL_image etc. libraries are -appropriately- available as frameworks for OS X.

my application uses runtime linked dynamic libs for accessing them (enhancing a system with e.g. SDL support). This cannot be done on OS X because bundles cannot call frameworks.

Is there a bypass / other way of doing this?
 
This is pretty much theory, but I believe you could build the SDL_image framework with an installation path which reflects the framework's location relative to the program which loaded the bundle:

@executable_path/../Plugins/MySDLPlugin.plugin/Contents/Frameworks/

I'll come back and test this once I get my iMac working again =(

[EDIT]

Yes, this method works, with the restriction that your plugin must reside at a fixed location relative to the app which loads it, or at a fixed absolute path.
 
Back
Top