Amazon.com Widgets p 342
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 29, 2014, 07:58:11 PM
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
|-+ Old Stuff
| |-+ Errata
| | |-+ 1st & 2nd printings
| | | |-+ p 342
Pages: [1] Go Down
Print
Author Topic: p 342 (Read 1238 times)
mdeh
Full Member
***
Posts: 166






on: February 02, 2009, 06:45:01 AM

First ref to program 15.7 should be ref to 15.6 and should the ref to strings be an object? as in .....set to the 12 string objects?? Is the terminology synonymous ie "string value" and "string object"?


First sentence on page does not sound right. Smiley


The sentence that starts with "Each retrieved element.....printf" is probably a left-over from the first edition and should be updated to NSLog, which the program does correctly show ( ie program 15.6)
Last Edit: February 02, 2009, 01:33:42 PM by mdeh Logged
skochan
Administrator
Hero Member
*****
Posts: 3114







Reply #1 on: February 03, 2009, 06:18:34 AM

Quote
TFirst ref to program 15.7 should be ref to 15.6 and should the ref to strings be an object? as in .....set to the 12 string objects?? Is the terminology synonymous ie "string value" and "string object"

The reference is okay, although yours is probably better; you're setting the elements of the array to 12 values, each of which is a string object.

Quote
First sentence on page does not sound right.  Smiley

Change to read:

"You can use the class method arrayWithObjects: to create an array with a list of objects as its elements."

Quote
The sentence that starts with "Each retrieved element.....printf" is probably a left-over from the first edition and should be updated to NSLog, which the program does correctly show ( ie program 15.6)

Change that line to read:

"Each retrieved element is displayed with NSLog."

Last Edit: February 03, 2009, 12:37:38 PM by skochan 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.