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: Professional iOS Network Programming: Connecting the Enterprise to the iPhone and iPad
This is the forum to discuss the Wrox book Professional iOS Network Programming: Connecting the Enterprise to the iPhone and iPad by Jack Cox, Nathan Jones, John Szumski; ISBN: 978-1-118-36240-2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional iOS Network Programming: Connecting the Enterprise to the iPhone and iPad 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 March 14th, 2014, 08:06 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Errata Chapter 5: Handling Errors

Hello,

Thank you for the great book. It is a pleasure to read and an awesome source for all aspects of iOS network programming.

I might be wrong but in the "networkChanged" method on page 100 a Reachability object is directly compared with a NetworkStatus value.
For my understanding the method should better read:

Code:
- (void)networkChanged:(NSNotification*)notification {
    Reachability *reachability = [notification object];
    NetworkStatus status = [reachability currentReachabilityStatus];
    
    if (status == ReachableViaWWAN) {
        // Reachable vie WWAN
    }
    ...
Cheers,

Last edited by foxtrott; March 14th, 2014 at 06:26 PM.
Reply With Quote
  #2 (permalink)  
Old March 16th, 2014, 05:58 PM
Wrox Author
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Foxtrott,

You are correct. The example in that section does contain a defect that it is not reading the correct property to properly ascertain the network status.

Sorry for the mistake.

Jack Cox
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
Lesson 21 Try It (Handling Errors) Mech_1000 BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer 3 February 21st, 2013 10:49 AM
php stopped handling errors gkman BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 4 February 19th, 2012 01:27 PM
handling all types of errors kliu9 Excel VBA 2 March 9th, 2005 01:06 PM



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


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