Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning iPad Application Development
This is the forum to discuss the Wrox book Beginning iPad Application Development by Wei-Meng Lee; ISBN: 9780470641651
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning 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 May 19th, 2010, 11:30 PM
Authorized User
Points: 172, Level: 3
Points: 172, Level: 3 Points: 172, Level: 3 Points: 172, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2010
Posts: 21
Thanks: 0
Thanked 6 Times in 4 Posts
Default List of Notes and Errata

Hi:
I will be maintaining a list of notes and errata for the book in this thread. This message will be edited as errata are discovered as well as notes of interest to the readers will also be posted.

Page 72:

The following block of code:
Code:
    [self.view addSubview:label];
    [self.view addSubview:button];
 
    [self.view exchangeSubviewAtIndex:1 withSubviewAtIndex:0];
 
    [label release];
Should be:
Code:
    [view addSubview:label];
    [view addSubview:button];
 
    [view exchangeSubviewAtIndex:1 withSubviewAtIndex:0];
 
    [label release];
Also, the following block of code:
Code:
   for (int i=0; i<[self.view.subviews count]; ++i) {
        UIView *view = [self.view.subviews objectAtIndex:i];
        NSLog([NSString stringWithFormat:@"%d", view.tag]);
    }
Should be:
Code:
    for (int i=0; i<[view.subviews count]; ++i) {
        UIView *v = [view.subviews objectAtIndex:i];
        NSLog([NSString stringWithFormat:@"%d", v.tag]);
    }
Page 197

The following statement:
Code:
    [movieSelected release];
Should be deleted as it is autoreleased.

Chapter 8 - Application Settings Page 242
Starting with the later beta version of the iPhone SDK 3.2, Apple mandates that the Picker View can only be called up using a PopoverView. Hence, the Picker view displayed in the View window as described in the book will not work. I have modified the original example and uploaded a new version of it at: http://www.2shared.com/file/i5Sr9EwV...nSettings.html.

This updated project also fixed the problem of the app crashing when it loads for the first time and the user clicks on the Load Settings button. Have initialized the value in the Application Delegate.

More information about the PopoverView can be obtained from: http://mobiforge.com/designing/story...pp-development.

Last edited by weimenglee; July 2nd, 2010 at 12:56 AM..
 
Old June 2nd, 2010, 07:45 PM
Registered User
 
Join Date: Jun 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have found an error not listed here.
On page 94 the line:
[window addSubview:viewController.view];
Yields the following error upon building:
"Request for member 'view' in something not a structure or union"

Changing the line to:
[window addSubview:[viewController view]];
Works as intended.
Also, the current Apple iPod Touch dev docs have a more in depth way of accomplishing this, found here:
Your First iPhone OS Application: Adding a View Controller

EDIT: Turns out, I forgot to add the #import statement. So, not an error, just a different way to accomplish the same thing. Sorry about that.
EDIT2: To make this post a little more useful, the page right before this, page 93, it states to insert bold lines into the code, but the lines that are needed are not bolded.

Last edited by Dexor; June 2nd, 2010 at 07:55 PM..
 
Old June 4th, 2010, 08:16 PM
Registered User
 
Join Date: Jun 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the eBook version (Kindle for iPad) and it doesn't have page numbers. Section titles or something would be helpful to locate the errata. Thanks.
 
Old June 14th, 2010, 06:32 PM
Registered User
Points: 34, Level: 1
Points: 34, Level: 1 Points: 34, Level: 1 Points: 34, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2010
Location: Fairfax, VA
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Default Chapter 2 Errata

Page 24 - I could not figure out why my simulator was not displaying as an "iPad" until I finally noticed that one needs to change the "Product" from "iPhone" to "iPad".

Page 38 - The second sentence should end with a period on the second line after the word "View".
 
Old July 14th, 2010, 01:41 AM
Registered User
 
Join Date: Jul 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

On page 72, the code fragment between figures 3-21 and figure 3-22 reads:

Code:
        [view addSubview:label];
	[view addSubview:button];
	
	[self.view exchangeSubviewAtIndex:1 withSubviewAtIndex:0];
		
	[label release];
It should read:

Code:
	[view addSubview:label];
	[view addSubview:button];
	
	self.view = view;
	[self.view exchangeSubviewAtIndex:1 withSubviewAtIndex:0];
	
	[label release];
 
Old July 26th, 2010, 11:32 AM
Registered User
 
Join Date: Jul 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Chapter 8: ApplicationSettings:

The URL http://www.2shared.com/file/i5Sr9EwV...nSettings.html seems to be incorrect




Similar Threads
Thread Thread Starter Forum Replies Last Post
Email Via Lotus Notes poyserr Access 1 June 30th, 2009 04:05 PM
Foot notes to end notes Frimann XSLT 1 April 26th, 2008 09:38 AM
Lotus Notes GuyB ASP.NET 1.0 and 1.1 Basics 0 December 27th, 2005 07:01 PM
Java notes jlnashrod JSP Basics 1 February 23rd, 2005 07:21 AM
Anyone have an errata list for the 1st edition? sum1els BOOK: Professional C#, 2nd and 3rd Editions 2 April 14th, 2004 12:39 PM





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