Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 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 .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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.
Reply With Quote
  #2 (permalink)  
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.
Reply With Quote
  #3 (permalink)  
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.
Reply With Quote
  #4 (permalink)  
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".
__________________
GeezerRoy - Trying to Keep It Simple
Reply With Quote
  #5 (permalink)  
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];
Reply With Quote
  #6 (permalink)  
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
Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 06:01 PM
Java notes jlnashrod JSP Basics 1 February 23rd, 2005 06: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



All times are GMT -4. The time now is 07:58 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.