Re: Bundling arbitrary data
Re: Bundling arbitrary data
- Subject: Re: Bundling arbitrary data
- From: Fritz Anderson <email@hidden>
- Date: Sat, 7 Jul 2007 09:33:23 -0500
On 6 Jul 2007, at 4:51 PM, Charlie Reiman wrote:
I'm attempting to build a tiny application that controls an Apache
instance. It can launch and kill Apache just fine. My goal though is
to place Apache and all its subfolders into the application bundle
itself so there is no external folders the user has to deal with.
The documentation doesn't seem to cover where in an application
bundle I would place non-resource, non-framework, non-plugin, not-
mac-at-all stuff. If it is ok to do this, is there a way to get
xcode include my essentially arbitrary data in the final bundle?
Adding the folder under resources had the effect of flattening the
entire tree structure.
If I understand your question, two things occur to me...
1. The flattening may be happening because your Apache-support folder
was added to the project as a group, which exists solely to organize
files in the Groups & Files list; this would be indicated by a yellow
folder icon. I believe you want a folder reference (actually adding a
directory-as-such to the project); this would be shown as a blue
folder icon. When you add a directory to a project, you're given the
choice of which way you want it included.
2. The folder could be added to the application's Resources directory
simply by adding the folder reference to the Copy Bundle Resources
build phase. If you wanted the folder to have its own place outside
Resources, add a Copy Files (not a Copy Bundle Resources) build phase
to your target. You add your folder to the phase, and use the phase's
Info window to designate where in the final application bundle the
folder is to go.
— F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden