Amazon.com Widgets Clases owning their own objects, modified 'setOrigin' method
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 16, 2014, 08:28:15 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
|-+ Programming in Objective-C, 4th edition
| |-+ Chapter 8
| | |-+ Clases owning their own objects, modified 'setOrigin' method
Pages: [1] Go Down
Print
Author Topic: Clases owning their own objects, modified 'setOrigin' method (Read 671 times)
urbanlung
Newbie
*
Posts: 13






on: February 07, 2012, 09:52:18 AM

Hi Stephen,

On page 167 you offer a method for setting origin that includes the line:

origin = [[XYPoint alloc] init];

Is the reason that this line does not read:

XYPoint *origin = [[XYPoint alloc] init];

because:

XYPoint *origin;

has already been declared.

Thanks
Logged
dharr19
Full Member
***
Posts: 175


Email




Reply #1 on: February 11, 2012, 08:19:51 AM

Hi,

Yes.

Cheers
David
Logged
urbanlung
Newbie
*
Posts: 13






Reply #2 on: February 17, 2012, 10:02:57 AM

Thanks!
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.