image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old July 13th, 2003, 04:00 PM
akauppi's Avatar
Registered User
 
Join Date: Jul 2003
Location: Finland
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
akauppi is on a distinguished road
Unhappy using frameworks from bundles (why cannot that be done?)

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?
Reply With Quote
  #2  
Old July 13th, 2003, 08:55 PM
NSCoder
 
Join Date: Oct 2002
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
anarchie is on a distinguished road
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.

Last edited by anarchie; July 14th, 2003 at 12:55 PM.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I link to frameworks from command line compile? rharder Software Programming & Web Scripting 2 November 15th, 2002 10:36 AM
Frameworks buc99 Mac OS X System & Mac Software 0 June 9th, 2002 12:10 AM
Dependent frameworks whitesaint Software Programming & Web Scripting 0 October 2nd, 2001 07:01 AM


All times are GMT -5. The time now is 11:30 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.