Welcome, Guest. Please login or register.
Did you miss your activation email?
February 23, 2017, 02:21:52 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
| |-+ General Discussion
| | |-+ Appendix B - AddressCard.m copyWithZone code missing the opening curly brac
Pages: [1] Go Down
Print
Author Topic: Appendix B - AddressCard.m copyWithZone code missing the opening curly brac (Read 967952 times)
dfolland
Newbie
*
Posts: 1


on: August 17, 2012, 09:00:58 AM

This is how the code is in the my.safaribooksonline.com example (line 38).  It's missing the opening curly brace.

-(id) copyWithZone: (NSZone *) zone
    id newCard = [[[self class] allocWithZone: zone] init];

    [newCard assignName: name andEmail: email];
    return newCard;
}
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.