Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
August 17, 2017, 04:40:42 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: Appendix B - AddressCard.m copyWithZone code missing the opening curly brac  (Read 970425 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:  

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.