• 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: Aliases or Links in Contents/Resources?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Aliases or Links in Contents/Resources?


  • Subject: Re: Aliases or Links in Contents/Resources?
  • From: Daniel Jalkut <email@hidden>
  • Date: Mon, 26 Dec 2005 19:42:45 -0500

Will the "host application" always be running before the "agent application" needs access to its resources?

Once the application is running, you can use the "bundleWithIdentifier" method of NSBundle to locate it, and then ask for resources from within that bundle.

E.g.:

[[NSBundle bundleWithIdentifier:@"com.red-sweater.HappyApp"] pathForResource:@"SmileyFace" ofType:@"jpg"];

That seems preferable to using links or aliases, which add build-time complexity to your release process.

Daniel

On Dec 23, 2005, at 2:16 PM, Jerry Krinock wrote:

This seems like a question that might have correct answer and many
almost-correct answers which will bite me later. Is there a proper way to
do this cross-reference resources within a compound package?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Aliases or Links in Contents/Resources? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: customizing save behavior in doc based apps
  • Next by Date: Re: Two table views - which has "focus"?
  • Previous by thread: Aliases or Links in Contents/Resources?
  • Next by thread: Opening a file
  • Index(es):
    • Date
    • Thread