You are currently viewing the BOOK: Beginning iPad Application Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
This is probably a stupid question. But I am willing to accept the humiliation, if I could just figure this out...
Is the Resource Folder created when a new Ipad app project is created?
After searching all existing folders and seeking input from Help files, I created it myself and all seems to be working fine...but the text in the book seems to be referring to a 'Resource Folder' that is right in front of my face...so making one manually in the project directory seems incorrect...can somebody set me straight on this....Much Thanks
,Jack
Are you asking about the Resource folder in the Groups & Files section of Xcode? If so, then the answer depends on what version of Xcode you are using. Xcode 4 by default has a different way of organizing the groups and does not include a "Resources" folder (and in fact no longer has a "Groups & Files" section, though the Project Navigator is basically the same thing). All versions of Xcode up until 3.2.6 do create a Resources folder. The folders in the Project Navigator (which are "groups" i.e. from the context menu New Group or New Group from Selection) are purely organizational and have no effect on how the program compiles or runs. You will find no evidence of them in the projects actual directory.
In Xcode up until 3.2.6, five default Groups were always created - Classes, Other Sources, Resources, Frameworks and Products. In Xcode 4 four default Groups are created - One named after the project with a Supporting Files subfolder, Frameworks and Products. So if you are using Xcode 4 no Resources folder is created.
Bob
The Following User Says Thank You to thepianoguy For This Useful Post:
Thanks for that...I truly appreciate it...the iPad Development book must be referencing a version earlier than 4.0..which is why I was confused about the Resource folder...
So, just to clarify...in 4.0 is the recommended way to add an image, to simply select the Add File option from the standard menu option?
You can add an image by using the Add Files to… option from the context menu, or just drag and drop the image into the Project Navigator. Both methods will bring up the same dialog.
I believe that the book was published about a year ago, so it is a couple of Xcode and SDK versions behind.
Bob
The Following User Says Thank You to thepianoguy For This Useful Post: