Wrox Programmer Forums
|
BOOK: Professional iPhone and iPad Application Development
This is the forum to discuss the Wrox book Professional iPhone and iPad Application Development by Gene Backlin; ISBN: 978-0-470-87819-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional iPhone and iPad Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 28th, 2011, 02:04 PM
Friend of Wrox
 
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts
Default Chapter 9

A few Xcode 4 points worth noting for the .plists.
1. When creating the Settings.bundle the type of Root.plist will be set to iPhone Settings plist by default.
2. When making the ChildPane .plist there is no longer a Main Menu item View>Property List Type option (that I could find), selecting the file in the Project Navigator and right-clicking in the editor area (not on the file name) will present a context menu with one of the options Property List Type so it can be set in this manner.
3. When adding Preference Items by selecting an existing Item and hitting return (or clicking the plus sign in the Preference Items row) by default a Textfield Item is created. A checklist of the various options appears in the Key column, with the TextField checked. Attempting to change the type, to Group for example as in the project, from this checklist causes Xcode to open an Alert Panel warning of an internal error, and with the option of crashing or continuing in a inconsistent state. The type can be changed successfully by opening the disclosure triangle and changing the type in the Value column. this will then be reflected in the Key column Item row.
4. The BankAccount.plist as created does not end up in the Settings.bundle, so it will not be found in the path as written in the -bundleSettings method. In Xcode I have not found a way to place the file into the Settings.bundle, but it can be placed there manually in the project directory by selecting Settings.bundle, right-clicking and choosing Show Package Contents and dragging the file in. If the project is open you will get a warning that the file is missing from its previous location. When asked to re-save it, you should choose not to.

As mentioned in a previous post, the layout of the .plist editor in Xcode 4 has a different appearance and so certain things do not match up with the figures in the book. Fortunately, it is relatively easy to work out the differences.

Bob
 
Old March 29th, 2011, 11:53 AM
Wrox Author
 
Join Date: Oct 2010
Posts: 61
Thanks: 0
Thanked 9 Times in 7 Posts
Default

Thanks Bob,

Yes Xcode 4 has really changed the workflow, and it has made somethings easier and some things very hard to find

I do like it a lot, however.

Take Care,
Gene





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6 - Code Download Missing for this Chapter dbaechtel BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 0 August 11th, 2009 11:02 AM
Chapter 2 - End of chapter exercises whizzkid1892 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 July 30th, 2008 12:02 PM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.