• 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 project config & accessing resources in the framework bundle.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Framework project config & accessing resources in the framework bundle.


  • Subject: Re: Framework project config & accessing resources in the framework bundle.
  • From: Nelson Santos <email@hidden>
  • Date: Mon, 12 Mar 2007 11:27:34 -0400

Hi Sherm,

Thanks for clarifying that.  I appreciate it.

You know, I found out something interesting. When running my app in debug mode, I notice that the framework path that it uses is not the one in the app bundle, but the framework bundle in the build/Debug directory. Is that normal?

Upon deleting the framework bundle in the build/Debug directory and rerunning the app (by double clicking on its icon in the build/Debug directory), it does indeed look into the app bundle Frameworks directory.

Nelson


On Mar 11, 2007, at 6:28 PM, Sherm Pendley wrote:

On Mar 11, 2007, at 10:45 AM, Nelson Santos wrote:

Thanks for the response. Am I literally supposed to put "@executable_path/../frameworks" into the installation path build setting?

That's the installation path *for the framework*, not for the app, and Frameworks should be capitalized.


When you link a framework into your app, the framework's installation path is copied into the app. When the app is loaded, the loader reads it and expands @executable_path into the path of the app binary:

	/Some/Directory/Whatever.app/Contents/MacOS/Whatever.

Since the binary is in MacOS/, the install path above will look for the framework in Contents/Frameworks/ inside of the .app bundle.

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

** ACCEPT: CRM114 PASS osb unique microgroom Matcher **CLASSIFY fails; success probability: 0.5000 pR: 0.0000
Best match to file #0 (nonspam.css) prob: 0.5000 pR: 0.0000 Total features in input file: 3344
#0 (nonspam.css): features: 1, hits: 0, prob: 5.00e-01, pR: 0.00#1 (spam.css): features: 1, hits: 0, prob: 5.00e-01, pR: 0.00


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Framework project config & accessing resources in the framework bundle. (From: Nelson Santos <email@hidden>)
 >Re: Framework project config & accessing resources in the framework bundle. (From: Chris Hanson <email@hidden>)
 >Re: Framework project config & accessing resources in the framework bundle. (From: Nelson Santos <email@hidden>)
 >Re: Framework project config & accessing resources in the framework bundle. (From: Sherm Pendley <email@hidden>)

  • Prev by Date: _mh_execute_header ??
  • Next by Date: Re: Transferring UI from dedicated window into a tabbed view
  • Previous by thread: Re: Framework project config & accessing resources in the framework bundle.
  • Next by thread: PDFView setDocument: autorelease crash?
  • Index(es):
    • Date
    • Thread