Welcome, Guest. Please login or register.
Did you miss your activation email?
April 30, 2017, 05:46:42 AM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Programming in Objective-C, 4th edition
| |-+ Errata
| | |-+ 2nd Printing
| | | |-+ Chapter 8, pg. 162
Pages: [1] Go Down
Print
Author Topic: Chapter 8, pg. 162 (Read 14650 times)
jonr
Full Member
***
Posts: 155


on: September 08, 2013, 06:45:55 PM

The errata sheet already has an error flagged for this page but I noticed something else:

In the 'Program 8.4 Rectangle.m Added methods' code display where it shows the methods added to the 'Rectangle.m' file, there are a few things that are confusing/wrong:

1. It shows #import "XYPoint.h" at the beginning of the file; it should be #import "Rectangle.h".  The full 'Rectangle.m' code listing that appears on the next page has it correctly.

2. This code listing is just the added methods but it is formatted suggesting that this is the complete *.m file.  There is '@end' there at the end.   It seems there should be some ellipses (...) at the beginning and end to be consistent with the fact that the info here are just code snippets and not the complete file.
Logged
Pages: [1] Go Up
Print
Jump to:



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.