Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
July 21, 2017, 01:54:37 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register Chat  
Pages: [1]   Go Down
  Print  
Author Topic: Chapter 8, pg. 162  (Read 15311 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:  

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 ゥ 2009 classroomM.com. All rights reserved.