Re: Is App in Resources App Bundle Evil?
Re: Is App in Resources App Bundle Evil?
- Subject: Re: Is App in Resources App Bundle Evil?
- From: Kyle Sluder <email@hidden>
- Date: Sun, 14 Nov 2010 19:43:40 -0800
On Sun, Nov 14, 2010 at 9:55 AM, kalexm <email@hidden> wrote:
> Hello all,
>
> I'm new to the list and somewhat new to OSX (not iphone!) development. I
> spent ten years most of my time in java so it was a hurdle..
>
> I am currently developing an app (APP-A) which does PDF manipulation. I
> have a second app (APP-B), that provides a PDF Viewer which is older.
> APP-A depends on APP-B as it uses APP-B for viewing manipulated PDFs. APP-B
> is independent from APP-A.
> I could put both apps into Applications. But if a User don't know what
> APP-B is for as he might only wan't APP-A but didn't see the dependency, he
> might delete APP-B and APP-A cannot work properly anymore.
>
> To solve this I put APP-B into the resources of APP-A, and it works to
> launch the app from this directory. I have not found any documentation from
> apple or mailing-lists if this is unwanted, problematic or somewhat evil!?
> The launchd finds the 'hidden' APP-B and behaves as expected...
>
> Is this allowed and recommendable, or how could I solve this alternatively
> and I don't want to merge the apps!?
>
The code signing in-depth technote (TN2206) advises against using Resources
for this. It suggests putting the helper app bundles in the Contents folder,
and single-file helper binaries directly inside Contents/MacOS.
http://developer.apple.com/library/mac/#technotes/tn2007/tn2206.html#TNTAG19
--Kyle Sluder
_______________________________________________
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