• 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: Framework Installation Directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Framework Installation Directory


  • Subject: Re: Framework Installation Directory
  • From: Sherm Pendley <email@hidden>
  • Date: Fri, 08 Apr 2011 09:48:41 -0400

On Fri, Apr 8, 2011 at 8:53 AM, Mr. Gecko <email@hidden> wrote:
> I need help with the Installation Directory for a framework that will be shared between a application and 2 daemons within side it. I think I may be able to do it if I were to have the 2 daemons executables in the MacOS path or another folder such as one named Daemons in the Contents folder. I am needing at least 1 of the daemons to be a bundle based daemon as it'll have some UI elements and such. The installation directory that I have been doing is "@executable_path/../Frameworks" which according to this, it'll go back 1 directory from the path of the executable and into the Frameworks directory to find the framework. The reason I am thinking in doing this as a framework is because some of the code I am using will be used in the daemons such as core code.

The details will vary according to how you've structured your bundles,
but the principle is the same. The install name of the framework is
used at link time, and copied into any apps that link with it. At run
time, it's the copy in the app that's used to find the framework, and
you can use install_name_tool's -change option to modify that.

install_name_tool -change
'@executable_path/../Frameworks/Foo.framework/Foo'
'@executable_path/../../Frameworks/Foo.framework/Foo'.

sherm--

--
Cocoa programming in Perl:
http://camelbones.sourceforge.net
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Framework Installation Directory
      • From: "Mr. Gecko" <email@hidden>
References: 
 >Framework Installation Directory (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: Re: Framework Installation Directory
  • Next by Date: Re: Framework Installation Directory
  • Previous by thread: Re: Framework Installation Directory
  • Next by thread: Re: Framework Installation Directory
  • Index(es):
    • Date
    • Thread