Wrong code on p. 286 (Multiple initializers)


#1

On p. 286, the code mentions those two methods:

[code]- (void)addOwnerNamesObject:(NSString *)n;

  • (void)removeOwnerNamesObject:(NSString *)n;[/code]

However, I assume you accidentally used the “…Object” due to code completion.

For other readers, the correct methods should be (as shown in the implementation and on p. 289):

[code]- (void)addOwnerName:(NSString *)n;

  • (void)removeOwnerName:(NSString *)n;[/code]

#2

I noticed this too as soon as the code completion started popping up.

Good catch!