Go Back   The macosxhints Forums > Working with OS X > OS X Developer



Reply
 
Thread Tools Rate Thread Display Modes
Old 08-08-2008, 05:40 AM   #1
aneuryzma
Triple-A Player
 
Join Date: May 2007
Posts: 158
Can I create subfolders in the Resources bundle folder of my app ?

When I copy my files into the Resources file inside my app bundle, all the files are copied into the main folder (even the zip files are decompressed and copied there).

But I need to keep the folder hierarchy and the zip files compressed. How can I do that ?

thanks
aneuryzma is offline   Reply With Quote
Old 08-08-2008, 02:05 PM   #2
Mikey-San
Hall of Famer
 
Join Date: Jan 2002
Posts: 3,541
Xcode Build System Guide: Copy Files Build Phase

Add a "copy files" build phase to your target, set the destination to "Resources", then type in the name of a subfolder you'd like to use. Add files to this build phase.

E.g.,

If your destination is "Resources", you specify "hurf" as the path, and you add a file called "pants.xml" to the phase, the file will be located here:

YourApp.app/Contents/Resources/hurf/pants.xml
__________________
COMPUTER TYPE
SOME SPECIFICATIONS I COPIED FROM THE BOX
STUFF I INSTALLED ALL BY MYSELF
"WITTY QUOTE"
Mikey-San is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 07:18 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.