Re: Managing executable frameworks for multiple projects
Re: Managing executable frameworks for multiple projects
- Subject: Re: Managing executable frameworks for multiple projects
- From: Dave Rehring <email@hidden>
- Date: Sat, 15 Nov 2003 01:11:13 -0800
On 11/15/03 12:18 AM, Markus Hitter at email@hidden wrote:
>> My understanding of frameworks is that if you add them to your
>> project, the framework either needs to be at that same location or
>> with one level of redirection using the @executable [well something
>> like this] hack.
>
> I'm not aware of any technical reason for such a requirement. In
> Principle, you can install a framework anywhere. One reason for using
> the standard paths is to have all frameworks grouped nicely, i.e. Drag
> 'n Drop installable. Reason #2 is, runtime/Foundation/AppKit methods
> will look up standard places by default, only. Using non-standard
> places requires extra logic for finding the frameworks. Unneccesary
> headaces on most cases.
My understanding of the technical reason why ~/Library/Frameworks/ doesn't
easily work is because when your application links against the framework, it
includes an absolute path to the framework. So, if your user name is
'dave', so your framework is in:
/Users/dave/Library/Frameworks/
If a user named 'bill' installs your application/framework, the framework
would be installed in:
/Users/bill/Library/Framework/
Since the path to the framework is different, your application wouldn't
launch because the framework wouldn't be found. Apple added a hack so that
you could embed a framework within your application, and you could write
code to search various locations for the framework and load it, but that's
more work than just linking against it.
Later,
--
David Rehring Psychos do not explode when light hits
VP of Research and Development them, no matter how crazy they are...
Atimi Software, Inc.
www.atimi.com And totally insane guy!
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.